Qore Programming Language Reference Manual 2.0.0
Loading...
Searching...
No Matches
ql_time.dox.h
1
3namespace Qore {
5
9 int day;
11 int dow;
13 int doy;
15 bool dst;
17 int hour;
21 int minute;
23 int month;
27 int second;
31 int year;
35 string zone_name;
36};
37}
38
40namespace Qore {
42
46 int day;
48 int week;
50 int year;
51};
52}
53
55namespace Qore {
263
265
280
282
297
299
314
316
326
328
352date date(string dtstr);
353
355
369date date(softfloat f);
370
372
386date date(int i);
387
389
397
399
406date date(null null);
407
409
426date date(string dtstr, string mask);
427
429
444
446
457
459
473date date_ms(softint ms);
474
476
480nothing date_ms();
481
483
497date date_us(softint us);
498
500
521date days(softint days);
522
524
528nothing days();
529
531
547string format_date(string format, date dt);
548
550
554nothing format_date();
555
557
573date getDateFromISOWeek(softint year, softint week, softint day = 1);
574
576
586
588
592nothing getDayNumber();
593
595
607
609
613nothing getDayOfWeek();
614
616
628
630
635
637
651
653
658
660
677
679
684
686
707date get_date_from_iso_week(softint year, softint week, softint day = 1);
708
710
727
729
748
750
765
767
771nothing get_days();
772
774
796
798
822
824
849
851
877
879
895
897
913
915
932
934
941
943
958
960
964nothing get_hours();
965
967
986
988
1009
1011
1030
1032
1049
1051
1066
1068
1073
1075
1092
1094
1099
1101
1116
1118
1122nothing get_minutes();
1123
1125
1140
1142
1146nothing get_months();
1147
1149
1166
1168
1172nothing get_seconds();
1173
1175
1190
1192
1196nothing get_years();
1197
1199
1214
1216
1231date gmtime(softint secs, softint us = 0);
1232
1234
1249
1251
1273
1275
1279nothing hours();
1280
1282
1297
1299
1304
1306
1321
1323
1328
1330
1345
1347
1362date localtime(softint secs, softint us = 0);
1363
1365
1380
1382
1403date microseconds(softint us);
1404
1406
1427date milliseconds(softint ms);
1428
1430
1435
1437
1459
1461
1465nothing minutes();
1466
1468
1484int mktime(date dt);
1485
1487
1491nothing mktime();
1492
1494
1516
1518
1522nothing months();
1523
1525
1543
1545
1563
1565
1583
1585
1598
1600
1622
1624
1628nothing seconds();
1629
1631
1645int timegm(date dt);
1646
1648
1652nothing timegm();
1653
1655
1677
1679
1683nothing years();
1684
1686}
The TimeZone class provides access to time zone functionality.
Definition QC_TimeZone.dox.h:11
date now_utc()
Returns the current UTC date and time with a resolution to the microsecond.
date gmtime()
Returns the current UTC (GMT) time with a resolution of a second.
nothing days()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing months()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing getDayOfWeek()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
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,...
nothing get_midnight()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing minutes()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
bool is_date_absolute()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
date date()
This function just returns 1970-01-01Z.
nothing get_milliseconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing years()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing getISODayOfWeek()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
date now()
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,...
nothing timegm()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int get_duration_microseconds(date dt)
Returns an integer value representing the the number of microseconds of duration in the value of the ...
nothing getDayNumber()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing format_date()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
date now_ms()
Returns the current date and time with a resolution to the millisecond.
nothing date_ms()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing get_months()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
date microseconds(softint us)
Returns a relative date/time value in microseconds based on the integer argument passed to be used in...
date now_us()
Returns the current date and time with a resolution to the microsecond.
int get_epoch_microseconds(date dt)
Returns the number of microseconds of the date and time in local time passed since Jan 1,...
nothing getISOWeekHash()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
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...
nothing getISOWeekString()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing hours()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
bool is_date_relative()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int clock_getmicros()
Returns an integer representing the system time in microseconds (1/1000000 second intervals) since Ja...
date getDateFromISOWeek(softint year, softint week, softint day=1)
Retuns an absolute date value for the ISO-8601 calendar week information passed (year,...
int get_microseconds(date dt)
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
hash< IsoWeekInfo > get_iso_week_hash(date dt)
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date...
date date_us(softint us)
Converts an integer argument representing the offset in microseconds from January 1,...
int get_duration_milliseconds(date dt)
Returns an integer value representing the the number of milliseconds of duration in the value of the ...
int get_duration_seconds(date dt)
Returns an integer value representing the the number of seconds of duration in the value of the date ...
nothing get_minutes()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
date localtime()
Returns the current date and time with a resolution to the second.
nothing mktime()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int get_day_of_week(date dt)
Returns an integer representing the day of the week for the absolute date value passed (0=Sunday,...
nothing get_seconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing milliseconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
int get_epoch_milliseconds(date dt)
Returns the number of milliseconds of the date and time in local time passed since Jan 1,...
nothing get_days()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
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...
nothing get_years()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing get_hours()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
nothing seconds()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
string get_iso_week_string(date dt)
Returns a string representing the ISO-8601 calendar week information for the absolute date passed (ex...
hash< DateTimeInfo > date_info()
Returns a DateTimeInfo hash for the current date and time.
int get_day_number(date dt)
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
nothing get_epoch_seconds()
This function variant does nothing at all.
int clock_getnanos()
Returns an integer representing the system time in nanoseconds (1/1000000000 second intervals) since ...
hash< auto > hash()
Always returns the same hash passed.
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3
date/time information hash as returned by date_info() and <date>::info()
Definition ql_time.dox.h:7
bool dst
(absolute Only) A flag if daylight savings time is in effect
Definition ql_time.dox.h:15
int doy
(absolute Only) The ordinal day number in the year
Definition ql_time.dox.h:13
Qore::TimeZone zone
(absolute Only) The time zone for the time
Definition ql_time.dox.h:33
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
int second
(absolute and relative) The second value of the date
Definition ql_time.dox.h:27
int month
(absolute and relative) The month value of the date
Definition ql_time.dox.h:23
int microsecond
(absolute and relative) The microsecond value of the date
Definition ql_time.dox.h:19
bool relative
(absolute and relative) True if the date is a relative date, False if it is absolute
Definition ql_time.dox.h:25
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
int year
(absolute and relative) The year value of the date
Definition ql_time.dox.h:31
int day
(absolute and relative) The day value of the date (day of the month for absolute dates)
Definition ql_time.dox.h:9
int dow
(absolute Only) The day of the week, where 0=Sunday, 1=Monday, ... 6=Saturday
Definition ql_time.dox.h:11
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
ISO week information as returned by get_iso_week_hash() and <date>::isoWeekHash()
Definition ql_time.dox.h:44
int day
the ISO day value from 1 (Monday) to 7 (Sunday)
Definition ql_time.dox.h:46
int week
the ISO week number
Definition ql_time.dox.h:48
int year
the ISO year value (not always equal to the actual calendar year)
Definition ql_time.dox.h:50