Static variables

@:phpClassConststaticfinalread onlyATOM:Int

@:phpClassConststaticfinalread onlyCOOKIE:Int

@:phpClassConststaticfinalread onlyISO8601:Int

@:phpClassConststaticfinalread onlyRFC1036:Int

@:phpClassConststaticfinalread onlyRFC1123:Int

@:phpClassConststaticfinalread onlyRFC2822:Int

@:phpClassConststaticfinalread onlyRFC3339:Int

@:phpClassConststaticfinalread onlyRFC3339_EXTENDED:Int

@:phpClassConststaticfinalread onlyRFC7231:Int

@:phpClassConststaticfinalread onlyRFC822:Int

@:phpClassConststaticfinalread onlyRFC850:Int

@:phpClassConststaticfinalread onlyRSS:Int

@:phpClassConststaticfinalread onlyW3C:Int

Static methods

Constructor

@:value({ datetime : "now" })new(datetime:String = "now", ?timezone:DateTimeZone)

Methods

@:phpMagic__wakeup():Void

@:value({ absolute : false })diff(targetObject:DateTimeInterface, absolute:Bool = false):EitherType<DateInterval, Bool>

@:value({ dayOfWeek : 1 })setISODate(year:Int, week:Int, dayOfWeek:Int = 1):EitherType<DateTimeImmutable, Bool>

@:value({ microsecond : 0, second : 0 })setTime(hour:Int, minute:Int, second:Int = 0, microsecond:Int = 0):EitherType<DateTimeImmutable, Bool>