Qore Programming Language Reference Manual
1.12.0
|
Functions | |
int | Qore::clock_getmicros () |
Returns an integer representing the system time in microseconds (1/1000000 second intervals) since Jan 1, 1970 00:00:00Z. More... | |
int | Qore::clock_getmillis () |
Returns an integer representing the system time in milliseconds (1/1000 second intervals since Jan 1, 1970 00:00) More... | |
int | Qore::clock_getnanos () |
Returns an integer representing the system time in nanoseconds (1/1000000000 second intervals) since Jan 1, 1970 00:00:00Z. More... | |
date | Qore::date (date dt) |
Returns the date passed. More... | |
date | Qore::date (string dtstr) |
Converts the argument to a date and returns the date. More... | |
date | Qore::date (softfloat f) |
The argument is assumed to be the number of seconds and fractions of a second. More... | |
date | Qore::date (int i) |
The argument is assumed to be the number of seconds. More... | |
date | Qore::date () |
This function just returns 1970-01-01Z. More... | |
date | Qore::date (null null) |
This function just returns 1970-01-01Z. More... | |
date | Qore::date (string dtstr, string mask) |
Returns the date/time value corresponding to parsing a string argument according to a format mask. More... | |
hash< DateTimeInfo > | Qore::date_info (date dt) |
Returns a DateTimeInfo hash for the given date argument (can be either a relative or absolute date) More... | |
hash< DateTimeInfo > | Qore::date_info () |
Returns a DateTimeInfo hash for the current date and time. More... | |
date | Qore::date_ms (softint ms) |
Converts an integer argument representing the offset in milliseconds from January 1, 1970 in the local time zone to a date in the local time zone. More... | |
nothing | Qore::date_ms () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::date_us (softint us) |
Converts an integer argument representing the offset in microseconds from January 1, 1970 in the local time zone to a date in the local time zone. More... | |
date | Qore::days (softint days) |
Returns a relative date/time value in days based on the integer argument passed to be used in date arithmetic. More... | |
nothing | Qore::days () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
string | Qore::format_date (string format, date dt) |
Returns a formatted string for a date argument passed. More... | |
nothing | Qore::format_date () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::getDateFromISOWeek (softint year, softint week, softint day=1) |
Retuns an absolute date value for the ISO-8601 calendar week information passed (year, week number, optional: weekday, where 1=Monday, 7=Sunday) in the current time zone. More... | |
int | Qore::getDayNumber (date dt) |
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day number) for the absolute date value passed. More... | |
nothing | Qore::getDayNumber () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::getDayOfWeek (date dt) |
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday, 6=Saturday) More... | |
nothing | Qore::getDayOfWeek () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::getISODayOfWeek (date dt) |
Returns an integer representing the ISO-8601 day of the week for the absolute date value passed (1=Monday, 7=Sunday) More... | |
nothing | Qore::getISODayOfWeek () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
hash< IsoWeekInfo > | Qore::getISOWeekHash (date dt) |
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date passed (hash keys: "year" , "week" , "day" ) More... | |
nothing | Qore::getISOWeekHash () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
string | Qore::getISOWeekString (date dt) |
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex: 2006-01-01 = "2005-W52-7") More... | |
nothing | Qore::getISOWeekString () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::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, week number, optional: weekday, where 1=Monday, 7=Sunday) in the current time zone. More... | |
int | Qore::get_day_number (date dt) |
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day number) for the absolute date value passed. More... | |
int | Qore::get_day_of_week (date dt) |
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday, 6=Saturday) More... | |
int | Qore::get_days (date dt) |
Returns an integer corresponding to the literal day value in the date (does not calculate a duration) More... | |
nothing | Qore::get_days () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::get_duration_microseconds (date dt) |
Returns an integer value representing the the number of microseconds of duration in the value of the date passed (can be either a relative or absolute date) More... | |
int | Qore::get_duration_milliseconds (date dt) |
Returns an integer value representing the the number of milliseconds of duration in the value of the date passed (can be either a relative or absolute date) More... | |
int | Qore::get_duration_seconds (date dt) |
Returns an integer value representing the the number of seconds of duration in the value of the date passed (can be either a relative or absolute date) More... | |
float | Qore::get_duration_seconds_f (date dt) |
Returns a floating-point value representing the the number of seconds of duration in the value of the date passed (can be either a relative or absolute date) More... | |
int | Qore::get_epoch_seconds (date dt) |
Returns the number of seconds of the date and time in local time passed since Jan 1, 1970, 00:00:00 Z (UTC); negative values are returned for dates before the epoch. More... | |
nothing | Qore::get_epoch_seconds () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::get_hours (date dt) |
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration) More... | |
nothing | Qore::get_hours () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::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=Monday, 7=Sunday) More... | |
hash< IsoWeekInfo > | Qore::get_iso_week_hash (date dt) |
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date passed (hash keys: "year" , "week" , "day" ) More... | |
string | Qore::get_iso_week_string (date dt) |
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex: 2006-01-01 = "2005-W52-7") More... | |
int | Qore::get_microseconds (date dt) |
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a duration) More... | |
date | Qore::get_midnight (date dt) |
Returns midnight on the date passed (strips the time component on the new value) More... | |
nothing | Qore::get_midnight () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::get_milliseconds (date dt) |
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a duration) More... | |
nothing | Qore::get_milliseconds () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::get_minutes (date dt) |
Returns an integer corresponding to the literal minute value in the date (does not calculate a duration) More... | |
nothing | Qore::get_minutes () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::get_months (date dt) |
Returns an integer corresponding to the literal month value in the date (does not calculate a duration) More... | |
nothing | Qore::get_months () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::get_seconds (date dt) |
Returns an integer corresponding to the literal second value in the date (does not calculate a duration) More... | |
nothing | Qore::get_seconds () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::get_years (date dt) |
Returns an integer corresponding to the literal year value in the date (does not calculate a duration) More... | |
nothing | Qore::get_years () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::gmtime () |
Returns the current UTC (GMT) time with a resolution of a second. More... | |
date | Qore::gmtime (softint secs, softint us=0) |
Returns a date/time value in UTC (GMT) from arguments giving the number of seconds and microseconds since Jan 1, 1970, 00:00:00 Z (UTC) More... | |
date | Qore::gmtime (date dt) |
Returns the date and time in UTC (GMT) corresponding to the date argument passed. More... | |
date | Qore::hours (softint hours) |
Returns a relative date/time value in hours based on the integer argument passed to be used in date arithmetic. More... | |
nothing | Qore::hours () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
bool | Qore::is_date_absolute (date dt) |
Returns True if the argument is an absolute date/time value, False if not. More... | |
bool | Qore::is_date_absolute () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
bool | Qore::is_date_relative (date dt) |
Returns True if the argument is an relative date/time value, False if not. More... | |
bool | Qore::is_date_relative () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::localtime () |
Returns the current date and time with a resolution to the second. More... | |
date | Qore::localtime (softint secs, softint us=0) |
Returns the date and time in the local time zone corresponding to the integer arguments passed, which are interpreted as the number of seconds and microseconds since Jan 1, 1970, 00:00:00 Z (UTC) More... | |
date | Qore::localtime (date dt) |
Returns the date and time in the local time zone corresponding to the date argument passed. More... | |
date | Qore::microseconds (softint us) |
Returns a relative date/time value in microseconds based on the integer argument passed to be used in date arithmetic. More... | |
date | Qore::milliseconds (softint ms) |
Returns a relative date/time value in milliseconds based on the integer argument passed to be used in date arithmetic. More... | |
nothing | Qore::milliseconds () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::minutes (softint minutes) |
Returns a relative date/time value in minutes based on the integer argument passed to be used in date arithmetic. More... | |
nothing | Qore::minutes () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::mktime (date dt) |
Returns the number of seconds of the date and time in local time passed since Jan 1, 1970, 00:00:00 Z (UTC); negative values are returned for dates before the epoch. More... | |
nothing | Qore::mktime () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::months (softint months) |
Returns a relative date/time value in months based on the integer argument passed to be used in date arithmetic. More... | |
nothing | Qore::months () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::now () |
Returns the current date and time with a resolution to the second. More... | |
date | Qore::now_ms () |
Returns the current date and time with a resolution to the millisecond. More... | |
date | Qore::now_us () |
Returns the current date and time with a resolution to the microsecond. More... | |
date | Qore::now_utc () |
Returns the current UTC date and time with a resolution to the microsecond. More... | |
date | Qore::seconds (softint seconds) |
Returns a relative date/time value in seconds based on the integer argument passed to be used in date arithmetic. More... | |
nothing | Qore::seconds () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
int | Qore::timegm (date dt) |
Returns the number of seconds since January 1, 1970 00:00:00 in the local time zone for the given date. More... | |
nothing | Qore::timegm () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
date | Qore::years (softint years) |
Returns a relative date/time value in years based on the integer argument passed to be used in date arithmetic. More... | |
nothing | Qore::years () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
Format Code | Description |
YY | last two digits of year |
YYYY | four-digit year |
M | non zero-padded month number (1-12) |
MM | zero-padded two-digit month number (01-12) |
Month | long month string (ex: "January" ) |
MONTH | long month string capitalized (ex: "JANUARY" ) |
Mon | abbreviated month (ex: "Jan" ) |
MON | abbreviated month, capitalized (ex: "JAN" ) |
D | non zero-padded day number (1 - 31) |
DD | zero-padded day number (01 - 31) |
Day | long day of week string (ex: "Monday" ) |
DAY | long day of week string, capitalized (ex: "MONDAY" ) |
Dn | the ordinal day number in the year without zero padding ("1" - "366" for leap years; ex: "85" ) |
DN | the day number in the year with zero padding to 3 digits ("001" - "366" for leap years; ex: "085" ) |
Dy | abbreviated day of week string (ex: "Mon" ) |
DY | abbreviated day of week string capitalized (ex: "MON" ) |
H | non zero-padded hour number (0 - 23) |
HH | zero-padded hour number (00 - 23) |
h | non zero-padded hour number, 12-hour clock (1 - 12) |
hh | zero-padded hour number, 12-hour clock (01 - 12) |
I | the ISO-8601 week string for the date (ex: "2018-W12-5" ) |
Id | the ISO-8601 week day number in the week ("1" - "7" ) |
ID | the ISO-8601 week day number in the week ("1" - "7" ) |
IF | the value in ISO-8601 format for both relative (ex: "P2Y1M3DT5H7M9.002S" ) and absolute dates (ex: "2018-03-23T10:43:12.067628+01:00" ) |
Iw | the ISO-8601 week number for the year without zero padding ("1" - "53" ) |
IW | the ISO-8601 week number for the year with zero padding to 2 digits ("01" - "53" ) |
Iy | the ISO-8601 week year number without zero padding (ex: "2018" ) |
IY | the ISO-8601 week year number with zero padding to 4 digits (ex: "2018" ) |
m | non zero-padded minute number (0 - 59) |
mm | zero-padded minute number (00 - 59) |
S | non zero-padded second number (0 - 59) |
SS | zero-padded second number (00 - 59) |
P | "AM" or "PM" (upper-case) |
p | "am" or "pm" (lower-case) |
u | non zero-padded millisecond number (0 - 999) |
uu or ms | zero-padded millisecond number (000 - 999) |
x | non zero-padded microsecond number (0 - 999999) |
xx or us | zero-padded microsecond number (000000 - 999999) |
y | microseconds, with trailing zeros removed (suitable for use after the '.') |
z | local time zone name (ex: "EST" ) if available, otherwise the UTC offset (ex: "+01:00" ) |
Z | time zone UTC offset like +HH:mm[:SS] (ex: "+01:00" ), seconds are only included if non-zero |
us
was added in Qore 0.8.7Dn
, DN
, I
, Id
, ID
, IF
, Iw
, IW
, Iy
, IY
format codes were added in Qore 0.9"u"
and "uu"
format codes work with milliseconds and not microseconds since they were implemented before qore supported microsecond time resolution; this cannot be changed without breaking backwards-compatibilityThe date mask (as used in Qore::date(string, string) and Qore::TimeZone::date(string, string)) is used to specify the string format of a date/time value for parsing to a date/time value.
The fields in the mask string are as follows:
YY:
The last 2 digits of the year; the current century is assumedYYYY:
A 4-digit year value (ex: 1956, 0870)MM:
A 2-digit month number (ex: 01, 11)Mon
or MON:
A 3-character English month name abbreviation (parsing is case-insensitive: ex: "Apr"
or "APR"
or "apr"
for April)DD:
A 2-digit day number (ex: 29, 04)HH:
A 2-digit hour number (ex: 23, 04)mm:
A 2-digit minute number (ex: 11, 04)ms:
A 3-digit millisecond number (ex: 511, 042)SS:
A 2-digit second number (ex: 11, 04)sss:
A 3-digit millisecond number (ex: 511, 042)ssssss:
A 6-digit microsecond number (ex: 240511, 005142)us:
A 6-digit microsecond number (ex: 240511, 005142)int Qore::clock_getmicros | ( | ) |
Returns an integer representing the system time in microseconds (1/1000000 second intervals) since Jan 1, 1970 00:00:00Z.
int Qore::clock_getmillis | ( | ) |
Returns an integer representing the system time in milliseconds (1/1000 second intervals since Jan 1, 1970 00:00)
int Qore::clock_getnanos | ( | ) |
Returns an integer representing the system time in nanoseconds (1/1000000000 second intervals) since Jan 1, 1970 00:00:00Z.
date Qore::date | ( | ) |
date Qore::date | ( | date | dt | ) |
date Qore::date | ( | int | i | ) |
The argument is assumed to be the number of seconds.
i | the number of seconds |
date Qore::date | ( | null | null | ) |
date Qore::date | ( | softfloat | f | ) |
The argument is assumed to be the number of seconds and fractions of a second.
f | the number of seconds and fractions of a second |
date Qore::date | ( | string | dtstr | ) |
Converts the argument to a date and returns the date.
dtstr | string a string to bo converted literally to an absolute date/time value; if no time zone information is present, the local time zone is assumed |
INVALID-DATE | thrown if the date is invalid; invalid or missing date components |
INVALID-DATE
exceptions are thrown if the date is invalid Returns the date/time value corresponding to parsing a string argument according to a format mask.
dtstr | a string giving a date |
mask | the mask for the date value; see Date Mask Format for information on the format of the format mask |
INVALID-DATE | invalid mask specification |
hash<DateTimeInfo> Qore::date_info | ( | ) |
Returns a DateTimeInfo hash for the current date and time.
hash<DateTimeInfo> Qore::date_info | ( | date | dt | ) |
Returns a DateTimeInfo hash for the given date argument (can be either a relative or absolute date)
dt | the date to return information for |
nothing Qore::date_ms | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::date_ms | ( | softint | ms | ) |
Converts an integer argument representing the offset in milliseconds from January 1, 1970 in the local time zone to a date in the local time zone.
ms | an integer argument representing the offset in milliseconds from January 1, 1970 in the local time zone |
date Qore::date_us | ( | softint | us | ) |
Converts an integer argument representing the offset in microseconds from January 1, 1970 in the local time zone to a date in the local time zone.
us | an integer argument representing the offset in microseconds from January 1, 1970 in the local time zone |
nothing Qore::days | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::days | ( | softint | days | ) |
Returns a relative date/time value in days based on the integer argument passed to be used in date arithmetic.
days | the number of days to return |
nothing Qore::format_date | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns a formatted string for a date argument passed.
format | a string giving the format for the date; see Date Formatting Codes for more information about this string |
dt | the date to use for the string output |
date Qore::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, week number, optional: weekday, where 1=Monday, 7=Sunday) in the current time zone.
Throws an exception if the arguments are invalid
year | the ISO-8601 year (which for some special days does not always correspond to the actual calendar year) |
week | the ISO-8601 week number; if this argument is invalid, an ISO-8601-INVALID-WEEK exception is thrown |
day | the day of the week, where 1=Monday and 7=Sunday; if this argument is invalid, an ISO-8601-INVALID-DAY exception is thrown |
ISO-8601-INVALID-WEEK | The week number is not valid for the given year |
ISO-8601-INVALID-DAY | The day number is not between 1 (Monday) and 7 (Sunday) inclusive |
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day number) for the absolute date value passed.
dt | an absolute date value to get the ordinal day number |
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday, 6=Saturday)
dt | an absolute date value to get the number for the day of the week |
nothing Qore::get_days | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer corresponding to the literal day value in the date (does not calculate a duration)
Returns an integer value representing the the number of microseconds of duration in the value of the date passed (can be either a relative or absolute date)
Returns an integer value representing the the number of milliseconds of duration in the value of the date passed (can be either a relative or absolute date)
The duration in milliseconds is calculated and any fractional milliseconds are truncated (no rounding is performed)
Returns an integer value representing the the number of seconds of duration in the value of the date passed (can be either a relative or absolute date)
The duration in seconds is calculated and any fractional seconds are truncated (no rounding is performed)
Returns a floating-point value representing the the number of seconds of duration in the value of the date passed (can be either a relative or absolute date)
The duration in seconds is calculated and any fractional seconds are returned as digits to the right of the decimal point.
nothing Qore::get_epoch_seconds | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the number of seconds of the date and time in local time passed since Jan 1, 1970, 00:00:00 Z (UTC); negative values are returned for dates before the epoch.
dt | The date to process |
nothing Qore::get_hours | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration)
Returns an integer representing the ISO-8601 day of the week for the absolute date value passed (1=Monday, 7=Sunday)
dt | an absolute date value to get the number for the day of the week |
hash<IsoWeekInfo> Qore::get_iso_week_hash | ( | date | dt | ) |
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date passed (hash keys: "year"
, "week"
, "day"
)
dt | the date to get information for |
"year"
, "week"
, "day"
); if a relative date value is passed, then this function will return year=1970, week=1, day=1Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex: 2006-01-01 = "2005-W52-7")
dt | the date to get information for |
"1970-W01-1"
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a duration)
nothing Qore::get_midnight | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns midnight on the date passed (strips the time component on the new value)
dt | the date to process |
nothing Qore::get_milliseconds | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a duration)
nothing Qore::get_minutes | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer corresponding to the literal minute value in the date (does not calculate a duration)
nothing Qore::get_months | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer corresponding to the literal month value in the date (does not calculate a duration)
nothing Qore::get_seconds | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer corresponding to the literal second value in the date (does not calculate a duration)
nothing Qore::get_years | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer corresponding to the literal year value in the date (does not calculate a duration)
date Qore::getDateFromISOWeek | ( | softint | year, |
softint | week, | ||
softint | day = 1 |
||
) |
Retuns an absolute date value for the ISO-8601 calendar week information passed (year, week number, optional: weekday, where 1=Monday, 7=Sunday) in the current time zone.
Throws an exception if the arguments are invalid
year | the ISO-8601 year (which for some special days does not always correspond to the actual calendar year) |
week | the ISO-8601 week number; if this argument is invalid, an ISO-8601-INVALID-WEEK exception is thrown |
day | the day of the week, where 1=Monday and 7=Sunday; if this argument is invalid, an ISO-8601-INVALID-DAY exception is thrown |
ISO-8601-INVALID-WEEK | The week number is not valid for the given year |
ISO-8601-INVALID-DAY | The day number is not between 1 (Monday) and 7 (Sunday) inclusive |
nothing Qore::getDayNumber | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day number) for the absolute date value passed.
dt | an absolute date value to get the ordinal day number |
nothing Qore::getDayOfWeek | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday, 6=Saturday)
dt | an absolute date value to get the number for the day of the week |
nothing Qore::getISODayOfWeek | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns an integer representing the ISO-8601 day of the week for the absolute date value passed (1=Monday, 7=Sunday)
dt | an absolute date value to get the number for the day of the week |
nothing Qore::getISOWeekHash | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
hash<IsoWeekInfo> Qore::getISOWeekHash | ( | date | dt | ) |
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date passed (hash keys: "year"
, "week"
, "day"
)
dt | the date to get information for |
"year"
, "week"
, "day"
); if a relative date value is passed, then this function will return year=1970, week=1, day=1nothing Qore::getISOWeekString | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex: 2006-01-01 = "2005-W52-7")
dt | the date to get information for |
"1970-W01-1"
date Qore::gmtime | ( | ) |
Returns the date and time in UTC (GMT) corresponding to the date argument passed.
dt | a date to process; if the date passed is already in UTC, then the same value is returned |
date Qore::gmtime | ( | softint | secs, |
softint | us = 0 |
||
) |
Returns a date/time value in UTC (GMT) from arguments giving the number of seconds and microseconds since Jan 1, 1970, 00:00:00 Z (UTC)
secs | the number of seconds and microseconds since Jan 1, 1970, 00:00:00 Z (UTC) |
us | a microsecond offset for the time returned |
nothing Qore::hours | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::hours | ( | softint | hours | ) |
Returns a relative date/time value in hours based on the integer argument passed to be used in date arithmetic.
hours | the number of hours to return |
bool Qore::is_date_absolute | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
bool Qore::is_date_absolute | ( | date | dt | ) |
Returns True if the argument is an absolute date/time value, False if not.
dt | the date to check |
bool Qore::is_date_relative | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
bool Qore::is_date_relative | ( | date | dt | ) |
Returns True if the argument is an relative date/time value, False if not.
dt | the date to check |
date Qore::localtime | ( | ) |
Returns the current date and time with a resolution to the second.
Returns the date and time in the local time zone corresponding to the date argument passed.
dt | a date to process; if the date passed is in the local time zone, then the same value is returned |
date Qore::localtime | ( | softint | secs, |
softint | us = 0 |
||
) |
Returns the date and time in the local time zone corresponding to the integer arguments passed, which are interpreted as the number of seconds and microseconds since Jan 1, 1970, 00:00:00 Z (UTC)
secs | the number of seconds and microseconds since Jan 1, 1970, 00:00:00 Z (UTC) |
us | a microsecond offset for the time returned |
date Qore::microseconds | ( | softint | us | ) |
Returns a relative date/time value in microseconds based on the integer argument passed to be used in date arithmetic.
us | the number of microseconds to return |
nothing Qore::milliseconds | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::milliseconds | ( | softint | ms | ) |
Returns a relative date/time value in milliseconds based on the integer argument passed to be used in date arithmetic.
ms | the number of milliseconds to return |
nothing Qore::minutes | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::minutes | ( | softint | minutes | ) |
Returns a relative date/time value in minutes based on the integer argument passed to be used in date arithmetic.
minutes | the number of minutes to return |
nothing Qore::mktime | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the number of seconds of the date and time in local time passed since Jan 1, 1970, 00:00:00 Z (UTC); negative values are returned for dates before the epoch.
dt | The date to process |
nothing Qore::months | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::months | ( | softint | months | ) |
Returns a relative date/time value in months based on the integer argument passed to be used in date arithmetic.
months | the number of months to return |
date Qore::now | ( | ) |
Returns the current date and time with a resolution to the second.
date Qore::now_ms | ( | ) |
date Qore::now_us | ( | ) |
Returns the current date and time with a resolution to the microsecond.
date Qore::now_utc | ( | ) |
nothing Qore::seconds | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::seconds | ( | softint | seconds | ) |
Returns a relative date/time value in seconds based on the integer argument passed to be used in date arithmetic.
seconds | the number of seconds to return |
nothing Qore::timegm | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
Returns the number of seconds since January 1, 1970 00:00:00 in the local time zone for the given date.
dt | The date to process |
nothing Qore::years | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
date Qore::years | ( | softint | years | ) |
Returns a relative date/time value in years based on the integer argument passed to be used in date arithmetic.
years | the number of years to return |