All Classes Namespaces Functions Variables Groups Pages
ql_time.dox.h
namespace Qore {
int clock_getmicros();
int clock_getmillis();
int clock_getnanos();
date date(date dt);
date date(string dtstr);
date date(float f);
date date(softint i);
date date();
date date(null null);
date date(string dtstr, string mask);
hash date_info(date dt);
hash date_info();
date date_ms(softint ms);
nothing date_ms();
date date_us(softint us);
date days(softint days);
nothing days();
string format_date(string format, date dt);
nothing format_date();
date getDateFromISOWeek(softint year, softint week, softint day = 1);
int getDayNumber(date dt);
nothing getDayNumber();
int getDayOfWeek(date dt);
nothing getDayOfWeek();
int getISODayOfWeek(date dt);
nothing getISODayOfWeek();
hash getISOWeekHash(date dt);
nothing getISOWeekHash();
string getISOWeekString(date dt);
nothing getISOWeekString();
int get_days(date dt);
nothing get_days();
int get_duration_microseconds(date dt);
int get_duration_milliseconds(date dt);
int get_duration_seconds(date dt);
int get_epoch_seconds(date dt);
nothing get_epoch_seconds();
int get_hours(date dt);
nothing get_hours();
int get_microseconds(date dt);
date get_midnight(date dt);
nothing get_midnight();
int get_milliseconds(date dt);
nothing get_milliseconds();
int get_minutes(date dt);
nothing get_minutes();
int get_months(date dt);
nothing get_months();
int get_seconds(date dt);
nothing get_seconds();
int get_years(date dt);
nothing get_years();
date gmtime();
date gmtime(softint secs, softint us = 0);
date gmtime(date dt);
date hours(softint hours);
nothing hours();
bool is_date_absolute(date dt);
bool is_date_absolute();
bool is_date_relative(date dt);
bool is_date_relative();
date localtime();
date localtime(softint secs, softint us = 0);
date localtime(date dt);
date microseconds(softint us);
date milliseconds(softint ms);
nothing milliseconds();
date minutes(softint minutes);
nothing minutes();
int mktime(date dt);
nothing mktime();
date months(softint months);
nothing months();
date now();
date now_ms();
date now_us();
date now_utc();
date seconds(softint seconds);
nothing seconds();
int timegm(date dt);
nothing timegm();
date years(softint years);
nothing years();
};
Qore::get_hours
int get_hours(date dt)
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration...
Qore::get_microseconds
int get_microseconds(date dt)
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
Qore::getDayNumber
int getDayNumber(date dt)
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
Qore::date
date date(date dt)
Returns the date passed.
Qore::get_years
int get_years(date dt)
Returns an integer corresponding to the literal year value in the date (does not calculate a duration...
Qore::getDayOfWeek
int getDayOfWeek(date dt)
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday...
Qore::clock_getnanos
int clock_getnanos()
Returns an integer representing the system time in nanoseconds (1/1000000000 second intervals) since ...
Qore::get_months
int get_months(date dt)
Returns an integer corresponding to the literal month value in the date (does not calculate a duratio...
Qore::get_duration_microseconds
int get_duration_microseconds(date dt)
Returns an integer value representing the the number of microseconds of duration in the value of the ...
Qore::now_us
date now_us()
Returns the current date and time with a resolution to the microsecond.
Qore::getDateFromISOWeek
date 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.
Qore::mktime
int mktime(date dt)
Returns the number of seconds of the date and time in local time passed since Jan 1...
Qore::get_midnight
date get_midnight(date dt)
Returns midnight on the date passed (strips the time component on the new value)
Qore::now
date now()
Returns the current date and time with a resolution to the second.
Qore::gmtime
date gmtime()
Returns the current UTC (GMT) time with a resolution of a second.
Qore::get_milliseconds
int get_milliseconds(date dt)
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a d...
Qore::get_seconds
int get_seconds(date dt)
Returns an integer corresponding to the literal second value in the date (does not calculate a durati...
Qore::getISODayOfWeek
int getISODayOfWeek(date dt)
Returns an integer representing the ISO-8601 day of the week for the absolute date value passed (1=Mo...
Qore::now_ms
date now_ms()
Returns the current date and time with a resolution to the millisecond.
Qore::milliseconds
date milliseconds(softint ms)
Returns a relative date/time value in milliseconds based on the integer argument passed to be used in...
Qore::now_utc
date now_utc()
Returns the current UTC date and time with a resolution to the microsecond.
Qore::microseconds
date microseconds(softint us)
Returns a relative date/time value in microseconds based on the integer argument passed to be used in...
Qore::months
date months(softint months)
Returns a relative date/time value in months based on the integer argument passed to be used in date ...
Qore::date_info
hash date_info(date dt)
Returns a hash of broken-down date/time information for the given date argument (can be either a rela...
Qore::getISOWeekString
string getISOWeekString(date dt)
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex...
Qore::is_date_absolute
bool is_date_absolute(date dt)
Returns True if the argument is an absolute date/time value, False if not.
Qore::clock_getmillis
int clock_getmillis()
Returns an integer representing the system time in milliseconds (1/1000 second intervals since Jan 1...
Qore::is_date_relative
bool is_date_relative(date dt)
Returns True if the argument is an relative date/time value, False if not.
Qore::getISOWeekHash
hash getISOWeekHash(date dt)
Returns a hash representing the ISO-8601 calendar week information for the absolute date passed (hash...
Qore::get_epoch_seconds
int get_epoch_seconds(date dt)
Returns the number of seconds of the date and time in local time passed since Jan 1...
Qore::get_minutes
int get_minutes(date dt)
Returns an integer corresponding to the literal minute value in the date (does not calculate a durati...
Qore::date_ms
date date_ms(softint ms)
Converts an integer argument representing the offset in milliseconds from January 1...
Qore::years
date years(softint years)
Returns a relative date/time value in years based on the integer argument passed to be used in date a...
Qore::hours
date hours(softint hours)
Returns a relative date/time value in hours based on the integer argument passed to be used in date a...
Qore::get_days
int get_days(date dt)
Returns an integer corresponding to the literal day value in the date (does not calculate a duration)...
Qore::format_date
string format_date(string format, date dt)
Returns a formatted string for a date argument passed.
Qore::days
date days(softint days)
Returns a relative date/time value in days based on the integer argument passed to be used in date ar...
Qore::localtime
date localtime()
Returns the current date and time with a resolution to the second.
Qore::get_duration_seconds
int get_duration_seconds(date dt)
Returns an integer value representing the the number of seconds of duration in the value of the date ...
Qore::seconds
date seconds(softint seconds)
Returns a relative date/time value in seconds based on the integer argument passed to be used in date...
Qore::get_duration_milliseconds
int get_duration_milliseconds(date dt)
Returns an integer value representing the the number of milliseconds of duration in the value of the ...
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::date_us
date date_us(softint us)
Converts an integer argument representing the offset in microseconds from January 1...
Qore::minutes
date minutes(softint minutes)
Returns a relative date/time value in minutes based on the integer argument passed to be used in date...
Qore::clock_getmicros
int clock_getmicros()
Returns an integer representing the system time in microseconds (1/1000000 second intervals) since Ja...
Qore::timegm
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...