Loading...
Searching...
No Matches
ql_time.dox.h
namespace Qore {
struct DateTimeInfo {
int day;
int dow;
int doy;
bool dst;
int hour;
int microsecond;
int minute;
int month;
bool relative;
int second;
int utc_secs_east;
int year;
Qore::TimeZone zone;
string zone_name;
};
}
namespace Qore {
struct IsoWeekInfo {
int day;
int week;
int year;
};
}
namespace Qore {
int clock_getmicros();
int clock_getmillis();
int clock_getnanos();
date date(date dt);
date date(string dtstr);
date date(softfloat f);
date date(int i);
date date();
date date(null null);
date date(string dtstr, string mask);
hash<DateTimeInfo> date_info(date dt);
hash<DateTimeInfo> 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<IsoWeekInfo> getISOWeekHash(date dt);
nothing getISOWeekHash();
string getISOWeekString(date dt);
nothing getISOWeekString();
date get_date_from_iso_week(softint year, softint week, softint day = 1);
int get_day_number(date dt);
int get_day_of_week(date dt);
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);
float get_duration_seconds_f(date dt);
int get_epoch_seconds(date dt);
nothing get_epoch_seconds();
int get_hours(date dt);
nothing get_hours();
int get_iso_day_of_week(date dt);
hash<IsoWeekInfo> get_iso_week_hash(date dt);
string get_iso_week_string(date dt);
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::TimeZone
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
Qore::now_utc
date now_utc()
Returns the current UTC date and time with a resolution to the microsecond.
Qore::gmtime
date gmtime()
Returns the current UTC (GMT) time with a resolution of a second.
Qore::days
nothing days()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::months
nothing months()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::getDayOfWeek
nothing getDayOfWeek()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_date_from_iso_week
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,...
Qore::get_midnight
nothing get_midnight()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::minutes
nothing minutes()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::is_date_absolute
bool is_date_absolute()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::date
date date()
This function just returns 1970-01-01Z.
Qore::get_milliseconds
nothing get_milliseconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::years
nothing years()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::getISODayOfWeek
nothing getISODayOfWeek()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::now
date now()
Returns the current date and time with a resolution to the second.
Qore::clock_getmillis
int clock_getmillis()
Returns an integer representing the system time in milliseconds (1/1000 second intervals since Jan 1,...
Qore::timegm
nothing timegm()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
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::getDayNumber
nothing getDayNumber()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::format_date
nothing format_date()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::now_ms
date now_ms()
Returns the current date and time with a resolution to the millisecond.
Qore::date_ms
nothing date_ms()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_months
nothing get_months()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
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::now_us
date now_us()
Returns the current date and time with a resolution to the microsecond.
Qore::getISOWeekHash
nothing getISOWeekHash()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_iso_day_of_week
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...
Qore::getISOWeekString
nothing getISOWeekString()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::hours
nothing hours()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::is_date_relative
bool is_date_relative()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::clock_getmicros
int clock_getmicros()
Returns an integer representing the system time in microseconds (1/1000000 second intervals) since Ja...
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,...
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::get_iso_week_hash
hash< IsoWeekInfo > get_iso_week_hash(date dt)
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date...
Qore::date_us
date date_us(softint us)
Converts an integer argument representing the offset in microseconds from January 1,...
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::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::get_minutes
nothing get_minutes()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::localtime
date localtime()
Returns the current date and time with a resolution to the second.
Qore::mktime
nothing mktime()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_day_of_week
int get_day_of_week(date dt)
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday,...
Qore::get_seconds
nothing get_seconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::milliseconds
nothing milliseconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_days
nothing get_days()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_duration_seconds_f
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...
Qore::get_years
nothing get_years()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_hours
nothing get_hours()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::seconds
nothing seconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::get_iso_week_string
string get_iso_week_string(date dt)
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex...
Qore::date_info
hash< DateTimeInfo > date_info()
Returns a DateTimeInfo hash for the current date and time.
Qore::get_day_number
int get_day_number(date dt)
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
Qore::get_epoch_seconds
nothing get_epoch_seconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::clock_getnanos
int clock_getnanos()
Returns an integer representing the system time in nanoseconds (1/1000000000 second intervals) since ...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::DateTimeInfo
date/time information hash as returned by date_info() and <date>::info()
Definition: ql_time.dox.h:7
Qore::DateTimeInfo::dst
bool dst
(absolute Only) A flag if daylight savings time is in effect
Definition: ql_time.dox.h:15
Qore::DateTimeInfo::doy
int doy
(absolute Only) The ordinal day number in the year
Definition: ql_time.dox.h:13
Qore::DateTimeInfo::zone
Qore::TimeZone zone
(absolute Only) The time zone for the time
Definition: ql_time.dox.h:33
Qore::DateTimeInfo::hour
int hour
(absolute and relative) The hour value of the date
Definition: ql_time.dox.h:17
Qore::DateTimeInfo::minute
int minute
(absolute and relative) The minute value of the date
Definition: ql_time.dox.h:21
Qore::DateTimeInfo::second
int second
(absolute and relative) The second value of the date
Definition: ql_time.dox.h:27
Qore::DateTimeInfo::month
int month
(absolute and relative) The month value of the date
Definition: ql_time.dox.h:23
Qore::DateTimeInfo::microsecond
int microsecond
(absolute and relative) The microsecond value of the date
Definition: ql_time.dox.h:19
Qore::DateTimeInfo::relative
bool relative
(absolute and relative) True if the date is a relative date, False if it is absolute
Definition: ql_time.dox.h:25
Qore::DateTimeInfo::utc_secs_east
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
Qore::DateTimeInfo::year
int year
(absolute and relative) The year value of the date
Definition: ql_time.dox.h:31
Qore::DateTimeInfo::day
int day
(absolute and relative) The day value of the date (day of the month for absolute dates)
Definition: ql_time.dox.h:9
Qore::DateTimeInfo::dow
int dow
(absolute Only) The day of the week, where 0=Sunday, 1=Monday, ... 6=Saturday
Definition: ql_time.dox.h:11
Qore::DateTimeInfo::zone_name
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
Qore::IsoWeekInfo
ISO week information as returned by get_iso_week_hash() and <date>::isoWeekHash()
Definition: ql_time.dox.h:44
Qore::IsoWeekInfo::day
int day
the ISO day value from 1 (Monday) to 7 (Sunday)
Definition: ql_time.dox.h:46
Qore::IsoWeekInfo::week
int week
the ISO week number
Definition: ql_time.dox.h:48
Qore::IsoWeekInfo::year
int year
the ISO year value (not always equal to the actual calendar year)
Definition: ql_time.dox.h:50