Qore Programming Language Reference Manual  0.8.12.3
ql_time.dox.h
1 
3 namespace Qore {
257 
259 
273 int clock_getmicros();
274 
276 
290 int clock_getmillis();
291 
293 
307 int clock_getnanos();
308 
310 
319 date date(date dt);
320 
322 
342 date date(string dtstr);
343 
345 
357 date date(float f);
358 
360 
372 date date(softint i);
373 
375 
382 date date();
383 
385 
392 date date(null null);
393 
395 
412 date date(string dtstr, string mask);
413 
415 
429 hash date_info(date dt);
430 
432 
442 hash date_info();
443 
445 
459 date date_ms(softint ms);
460 
462 
466 nothing date_ms();
467 
469 
483 date date_us(softint us);
484 
486 
507 date days(softint days);
508 
510 
514 nothing days();
515 
517 
533 string format_date(string format, date dt);
534 
536 
540 nothing format_date();
541 
543 
559 date getDateFromISOWeek(softint year, softint week, softint day = 1);
560 
562 
571 int getDayNumber(date dt);
572 
574 
578 nothing getDayNumber();
579 
581 
592 int getDayOfWeek(date dt);
593 
595 
599 nothing getDayOfWeek();
600 
602 
613 int getISODayOfWeek(date dt);
614 
616 
620 nothing getISODayOfWeek();
621 
623 
637 
639 
643 nothing getISOWeekHash();
644 
646 
662 string getISOWeekString(date dt);
663 
665 
669 nothing getISOWeekString();
670 
672 
693 date get_date_from_iso_week(softint year, softint week, softint day = 1);
694 
696 
712 int get_day_number(date dt);
713 
715 
733 int get_day_of_week(date dt);
734 
736 
750 int get_days(date dt);
751 
753 
757 nothing get_days();
758 
760 
782 
784 
808 
810 
834 int get_duration_seconds(date dt);
835 
837 
862 float get_duration_seconds_f(date dt);
863 
865 
881 int get_epoch_seconds(date dt);
882 
884 
888 nothing get_epoch_seconds();
889 
891 
905 int get_hours(date dt);
906 
908 
912 nothing get_hours();
913 
915 
933 int get_iso_day_of_week(date dt);
934 
936 
957 
959 
977 string get_iso_week_string(date dt);
978 
980 
996 int get_microseconds(date dt);
997 
999 
1013 date get_midnight(date dt);
1014 
1016 
1020 nothing get_midnight();
1021 
1023 
1039 int get_milliseconds(date dt);
1040 
1042 
1046 nothing get_milliseconds();
1047 
1049 
1063 int get_minutes(date dt);
1064 
1066 
1070 nothing get_minutes();
1071 
1073 
1087 int get_months(date dt);
1088 
1090 
1094 nothing get_months();
1095 
1097 
1113 int get_seconds(date dt);
1114 
1116 
1120 nothing get_seconds();
1121 
1123 
1137 int get_years(date dt);
1138 
1140 
1144 nothing get_years();
1145 
1147 
1161 date gmtime();
1162 
1164 
1179 date gmtime(softint secs, softint us = 0);
1180 
1182 
1196 date gmtime(date dt);
1197 
1199 
1220 date hours(softint hours);
1221 
1223 
1227 nothing hours();
1228 
1230 
1244 bool is_date_absolute(date dt);
1245 
1247 
1251 bool is_date_absolute();
1252 
1254 
1268 bool is_date_relative(date dt);
1269 
1271 
1275 bool is_date_relative();
1276 
1278 
1292 date localtime();
1293 
1295 
1310 date localtime(softint secs, softint us = 0);
1311 
1313 
1327 date localtime(date dt);
1328 
1330 
1351 date microseconds(softint us);
1352 
1354 
1375 date milliseconds(softint ms);
1376 
1378 
1382 nothing milliseconds();
1383 
1385 
1406 date minutes(softint minutes);
1407 
1409 
1413 nothing minutes();
1414 
1416 
1432 int mktime(date dt);
1433 
1435 
1439 nothing mktime();
1440 
1442 
1463 date months(softint months);
1464 
1466 
1470 nothing months();
1471 
1473 
1490 date now();
1491 
1493 
1510 date now_ms();
1511 
1513 
1530 date now_us();
1531 
1533 
1545 date now_utc();
1546 
1548 
1569 date seconds(softint seconds);
1570 
1572 
1576 nothing seconds();
1577 
1579 
1593 int timegm(date dt);
1594 
1596 
1600 nothing timegm();
1601 
1603 
1624 date years(softint years);
1625 
1627 
1631 nothing years();
1632 
1634 };
int get_hours(date dt)
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration...
int get_microseconds(date dt)
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
int getDayNumber(date dt)
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
date date(date dt)
Returns the date passed.
int get_years(date dt)
Returns an integer corresponding to the literal year value in the date (does not calculate a duration...
int getDayOfWeek(date dt)
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday...
int clock_getnanos()
Returns an integer representing the system time in nanoseconds (1/1000000000 second intervals) since ...
int get_months(date dt)
Returns an integer corresponding to the literal month value in the date (does not calculate a duratio...
int get_duration_microseconds(date dt)
Returns an integer value representing the the number of microseconds of duration in the value of the ...
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...
date now_us()
Returns the current date and time with a resolution to the microsecond.
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.
int mktime(date dt)
Returns the number of seconds of the date and time in local time passed since Jan 1...
date get_midnight(date dt)
Returns midnight on the date passed (strips the time component on the new value)
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 get_day_number(date dt)
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
date now()
Returns the current date and time with a resolution to the second.
date gmtime()
Returns the current UTC (GMT) time with a resolution of a second.
int get_milliseconds(date dt)
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a d...
int get_seconds(date dt)
Returns an integer corresponding to the literal second value in the date (does not calculate a durati...
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, week number, optional: weekday, where 1=Monday, 7=Sunday) in the current time zone.
int getISODayOfWeek(date dt)
Returns an integer representing the ISO-8601 day of the week for the absolute date value passed (1=Mo...
date now_ms()
Returns the current date and time with a resolution to the millisecond.
date milliseconds(softint ms)
Returns a relative date/time value in milliseconds based on the integer argument passed to be used in...
date now_utc()
Returns the current UTC date and time with a resolution to the microsecond.
date microseconds(softint us)
Returns a relative date/time value in microseconds based on the integer argument passed to be used in...
date months(softint months)
Returns a relative date/time value in months based on the integer argument passed to be used in date ...
hash date_info(date dt)
Returns a hash of broken-down date/time information for the given date argument (can be either a rela...
string getISOWeekString(date dt)
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex...
bool is_date_absolute(date dt)
Returns True if the argument is an absolute date/time value, False if not.
int clock_getmillis()
Returns an integer representing the system time in milliseconds (1/1000 second intervals since Jan 1...
bool is_date_relative(date dt)
Returns True if the argument is an relative date/time value, False if not.
hash getISOWeekHash(date dt)
Returns a hash representing the ISO-8601 calendar week information for the absolute date passed (hash...
string get_iso_week_string(date dt)
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex...
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 date_ms(softint ms)
Converts an integer argument representing the offset in milliseconds from January 1...
date years(softint years)
Returns a relative date/time value in years based on the integer argument passed to be used in date a...
date hours(softint hours)
Returns a relative date/time value in hours based on the integer argument passed to be used in date a...
int get_day_of_week(date dt)
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday...
int get_days(date dt)
Returns an integer corresponding to the literal day value in the date (does not calculate a duration)...
string format_date(string format, date dt)
Returns a formatted string for a date argument passed.
date days(softint days)
Returns a relative date/time value in days based on the integer argument passed to be used in date ar...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
date localtime()
Returns the current date and time with a resolution to the second.
int get_duration_seconds(date dt)
Returns an integer value representing the the number of seconds of duration in the value of the date ...
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_duration_milliseconds(date dt)
Returns an integer value representing the the number of milliseconds of duration in the value of the ...
hash hash(object obj)
Returns a hash of an object's members.
date date_us(softint us)
Converts an integer argument representing the offset in microseconds from January 1...
date minutes(softint minutes)
Returns a relative date/time value in minutes based on the integer argument passed to be used in date...
int clock_getmicros()
Returns an integer representing the system time in microseconds (1/1000000 second intervals) since Ja...
hash get_iso_week_hash(date dt)
Returns a hash representing the ISO-8601 calendar week information for the absolute date passed (hash...
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...