Available on php
See also:
https://www.php.net/manual/en/class.datetime.php
@: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
@:phpMagicstatic__set_state(array:NativeAssocArray<Any>):DateTime
staticcreateFromFormat(format:String, datetime:String, ?timezone:DateTimeZone):EitherType<DateTime, Bool>
staticcreateFromImmutable(object:DateTimeImmutable):DateTime
staticgetLastErrors():NativeAssocArray<Dynamic>
@:value({ datetime : "now" })new(datetime:String = "now", ?timezone:DateTimeZone)
@:phpMagic__wakeup():Void
add(interval:DateInterval):EitherType<DateTime, Bool>
@:value({ absolute : false })diff(targetObject:DateTimeInterface, absolute:Bool = false):EitherType<DateInterval, Bool>
format(format:String):EitherType<String, Bool>
getOffset():EitherType<Int, Bool>
getTimestamp():Int
getTimezone():EitherType<DateTimeZone, Bool>
modify(modifier:String):EitherType<DateTime, Bool>
setDate(year:Int, month:Int, day:Int):EitherType<DateTime, Bool>
@:value({ dayOfWeek : 1 })setISODate(year:Int, week:Int, dayOfWeek:Int = 1):EitherType<DateTime, Bool>
@:value({ microsecond : 0, second : 0 })setTime(hour:Int, minute:Int, second:Int = 0, microsecond:Int = 0):EitherType<DateTime, Bool>
setTimestamp(timestamp:Int):EitherType<DateTime, Bool>
setTimezone(timezone:DateTimeZone):EitherType<DateTime, Bool>
sub(interval:DateInterval):EitherType<DateTime, Bool>