 |
Qore Programming Language Reference Manual
0.9.4.2
|
420 date date(
string dtstr,
string mask);
int get_duration_seconds(date dt)
Returns an integer value representing the the number of seconds of duration in the value of the date ...
int doy
(absolute Only) The ordinal day number in the year
Definition: ql_time.dox.h:13
int mktime(date dt)
Returns the number of seconds of the date and time in local time passed since Jan 1,...
int get_microseconds(date dt)
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
int year
(absolute and relative) The year value of the date
Definition: ql_time.dox.h:31
date now_us()
Returns the current date and time with a resolution to the microsecond.
int timegm(date dt)
Returns the number of seconds since January 1, 1970 00:00:00 in the local time zone for the given dat...
date minutes(softint minutes)
Returns a relative date/time value in minutes based on the integer argument passed to be used in date...
date getDateFromISOWeek(softint year, softint week, softint day=1)
Retuns an absolute date value for the ISO-8601 calendar week information passed (year,...
date now()
Returns the current date and time with a resolution to the second.
int getISODayOfWeek(date dt)
Returns an integer representing the ISO-8601 day of the week for the absolute date value passed (1=Mo...
int getDayNumber(date dt)
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
int get_hours(date dt)
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration...
date get_date_from_iso_week(softint year, softint week, softint day=1)
Retuns an absolute date value for the ISO-8601 calendar week information passed (year,...
date milliseconds(softint ms)
Returns a relative date/time value in milliseconds based on the integer argument passed to be used in...
date now_ms()
Returns the current date and time with a resolution to the millisecond.
float get_duration_seconds_f(date dt)
Returns a floating-point value representing the the number of seconds of duration in the value of the...
hash< DateTimeInfo > date_info(date dt)
Returns a DateTimeInfo hash for the given date argument (can be either a relative or absolute date)
date get_midnight(date dt)
Returns midnight on the date passed (strips the time component on the new value)
string zone_name
(absolute Only) The name of the time zone for the given time (ex: "CEST" for Central European Summer ...
Definition: ql_time.dox.h:35
int get_years(date dt)
Returns an integer corresponding to the literal year value in the date (does not calculate a duration...
int get_milliseconds(date dt)
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a d...
int get_iso_day_of_week(date dt)
Returns an integer representing the ISO-8601 day of the week for the absolute date value passed (1=Mo...
int month
(absolute and relative) The month value of the date
Definition: ql_time.dox.h:23
int get_day_number(date dt)
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
int get_seconds(date dt)
Returns an integer corresponding to the literal second value in the date (does not calculate a durati...
date now_utc()
Returns the current UTC date and time with a resolution to the microsecond.
int week
the ISO week number
Definition: ql_time.dox.h:48
date gmtime()
Returns the current UTC (GMT) time with a resolution of a second.
hash< IsoWeekInfo > get_iso_week_hash(date dt)
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date...
int dow
(absolute Only) The day of the week, where 0=Sunday, 1=Monday, ... 6=Saturday
Definition: ql_time.dox.h:11
bool is_date_relative(date dt)
Returns True if the argument is an relative date/time value, False if not.
int day
(absolute and relative) The day value of the date (day of the month for absolute dates)
Definition: ql_time.dox.h:9
hash< IsoWeekInfo > getISOWeekHash(date dt)
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date...
int second
(absolute and relative) The second value of the date
Definition: ql_time.dox.h:27
date months(softint months)
Returns a relative date/time value in months based on the integer argument passed to be used in date ...
int get_epoch_seconds(date dt)
Returns the number of seconds of the date and time in local time passed since Jan 1,...
int get_minutes(date dt)
Returns an integer corresponding to the literal minute value in the date (does not calculate a durati...
date microseconds(softint us)
Returns a relative date/time value in microseconds based on the integer argument passed to be used in...
int utc_secs_east
(absolute Only) Offset from UTC in seconds east; if the time zone is west of UTC then the value will ...
Definition: ql_time.dox.h:29
date hours(softint hours)
Returns a relative date/time value in hours based on the integer argument passed to be used in date a...
string get_iso_week_string(date dt)
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex...
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
int get_day_of_week(date dt)
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday,...
bool is_date_absolute(date dt)
Returns True if the argument is an absolute date/time value, False if not.
bool relative
(absolute and relative) True if the date is a relative date, False if it is absolute
Definition: ql_time.dox.h:25
string getISOWeekString(date dt)
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex...
string format_date(string format, date dt)
Returns a formatted string for a date argument passed.
date date_ms(softint ms)
Converts an integer argument representing the offset in milliseconds from January 1,...
int microsecond
(absolute and relative) The microsecond value of the date
Definition: ql_time.dox.h:19
date years(softint years)
Returns a relative date/time value in years based on the integer argument passed to be used in date a...
int hour
(absolute and relative) The hour value of the date
Definition: ql_time.dox.h:17
int minute
(absolute and relative) The minute value of the date
Definition: ql_time.dox.h:21
date localtime()
Returns the current date and time with a resolution to the second.
int clock_getmillis()
Returns an integer representing the system time in milliseconds (1/1000 second intervals since Jan 1,...
int clock_getmicros()
Returns an integer representing the system time in microseconds (1/1000000 second intervals) since Ja...
int get_days(date dt)
Returns an integer corresponding to the literal day value in the date (does not calculate a duration)
ISO week information as returned by get_iso_week_hash() and <date>::isoWeekHash()
Definition: ql_time.dox.h:44
Qore::TimeZone zone
(absolute Only) The time zone for the time
Definition: ql_time.dox.h:33
date/time information hash as returned by date_info() and <date>::info()
Definition: ql_time.dox.h:7
date days(softint days)
Returns a relative date/time value in days based on the integer argument passed to be used in date ar...
date date(date dt)
Returns the date passed.
date date_us(softint us)
Converts an integer argument representing the offset in microseconds from January 1,...
int getDayOfWeek(date dt)
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday,...
int day
the ISO day value from 1 (Monday) to 7 (Sunday)
Definition: ql_time.dox.h:46
bool dst
(absolute Only) A flag if daylight savings time is in effect
Definition: ql_time.dox.h:15
int get_duration_milliseconds(date dt)
Returns an integer value representing the the number of milliseconds of duration in the value of the ...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
int get_duration_microseconds(date dt)
Returns an integer value representing the the number of microseconds of duration in the value of the ...
int year
the ISO year value (not always equal to the actual calendar year)
Definition: ql_time.dox.h:50
date seconds(softint seconds)
Returns a relative date/time value in seconds based on the integer argument passed to be used in date...
int get_months(date dt)
Returns an integer corresponding to the literal month value in the date (does not calculate a duratio...
int clock_getnanos()
Returns an integer representing the system time in nanoseconds (1/1000000000 second intervals) since ...