[ Compact ]
public class Date
A date and time.
The date is assumed to be in the (proleptic) Gregorian calendar. The time is in UTC if
true. Otherwise, the
time is a local time, and
offset gives the offset from UTC in minutes (such that adding
offset to the time would give
the correct UTC time). If
offset is 0, then the Date
represents a "floating" time with no associated timezone information.
- public Date (int year, int month, int day, int hour, int minute, int second)
Creates a Date representing the indicated time,
- public Date.from_now (int offset_seconds)
Creates a Date representing a time
offset_seconds after the current time (or before it, if
offset_seconds is negative).
- public Date.from_string (string date_string)
date_string and tries to extract a date from it.
- public Date.from_time_t (time_t when)
Creates a Date corresponding to