DateTime
An opaque structure that represents a date and time, including a time zone.
Skipped during bindings generation
parameter
timespan
: TimeSpanparameter
dt2
: DateTimemethod
difference
: Return type TimeSpan is unsupportedparameter
dt2
: DateTimemethod
get_utc_offset
: Return type TimeSpan is unsupportedparameter
year
: year: Out parameter is not supported
Since
2.26
Constructors
Functions
Creates a copy of @datetime adding the specified number of minutes. Add negative values to subtract minutes.
Creates a copy of @datetime and adds the specified number of seconds. Add negative values to subtract seconds.
Format @datetime in ISO 8601 format, including the date, time and time zone, and return that as a UTF-8 encoded string.
Retrieves the day of the month represented by @datetime in the gregorian calendar.
Retrieves the ISO 8601 day of the week on which @datetime falls (1 is Monday, 2 is Tuesday... 7 is Sunday).
Retrieves the day of the year represented by @datetime in the Gregorian calendar.
Retrieves the microsecond of the date represented by @datetime
Retrieves the number of seconds since the start of the last minute, including the fractional part.
Get the time zone for this @datetime.
Determines the time zone abbreviation to be used at the time and in the time zone of @datetime.
Returns the ISO 8601 week-numbering year in which the week containing
Returns the ISO 8601 week number for the week containing @datetime. The ISO 8601 week number is the same for every day of the week (from Moday through Sunday). That can produce some unusual results (described below).
Determines if daylight savings time is in effect at the time and in the time zone of @datetime.
Create a new #GDateTime corresponding to the same instant in time as