| Qore Programming Language Reference Manual 2.2.0

Loading...
Searching...
No Matches
Pseudo_QC_Date.dox.h
1
3 namespace Qore {
5/***/
6 class <date> : public <value> {
7
8 public:
10
17 bool absolute();
18
19 public:
21
31*string currentZoneName();
32
33 public:
35
49 int dayNumber();
50
51 public:
53
69 int dayOfWeek();
70
71 public:
73
87 int days();
88
89 public:
91
118 int durationMicroseconds();
119
120 public:
122
151 int durationMilliseconds();
152
153 public:
155
184 int durationSeconds();
185
186 public:
188
211 float durationSecondsFloat();
212
213 public:
215
231 string format(string format);
232
233 public:
235
251 int getEpochMicroseconds();
252
253 public:
255
271 int getEpochMilliseconds();
272
273 public:
275
287 int getEpochSeconds();
288
289 public:
291
303 int getEpochSecondsLocalTime();
304
305 public:
307
317 int getUtcOffset();
318
319 public:
321
335 int hours();
336
337 public:
339
353 hash<DateTimeInfo> info();
354
355 public:
357
368 bool intp();
369
370 public:
372
382 bool isDst();
383
384 public:
386
402 int isoDayOfWeek();
403
404 public:
406
424 hash<IsoWeekInfo> isoWeekHash();
425
426 public:
428
444 string isoWeekString();
445
446 public:
448
464 int microseconds();
465
466 public:
468
482 date midnight();
483
484 public:
486
502 int milliseconds();
503
504 public:
506
520 int minutes();
521
522 public:
524
538 int months();
539
540 public:
542
549 bool relative();
550
551 public:
553
569 int seconds();
570
571 public:
573
584 bool strp();
585
586 public:
588
599 int typeCode();
600
601 public:
603
617 bool val();
618
619 public:
621
633 int years();
634
635 public:
637
647*TimeZone zone();
648};
649}
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition QC_TimeZone.dox.h:11
<date>
Methods in this pseudo-class can be executed on date/time value types.
Definition Pseudo_QC_Date.dox.h:6
<date>::hours
int hours()
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration...
<date>::days
int days()
Returns an integer corresponding to the literal day value in the date (does not calculate a duration)
<date>::durationMilliseconds
int durationMilliseconds()
Returns an integer value representing the the number of milliseconds of time duration in the date val...
<date>::midnight
date midnight()
Returns midnight on the given date (strips the time component on the new value)
<date>::getEpochMicroseconds
int getEpochMicroseconds()
Returns the number of microseconds since the start of the epoch (1970-01-01Z)
<date>::getUtcOffset
int getUtcOffset()
Returns the time zone offset for the current time in seconds east of UTC or -1 for relative date/time...
<date>::seconds
int seconds()
Returns an integer corresponding to the literal second value in the date (does not calculate a durati...
<date>::milliseconds
int milliseconds()
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a d...
<date>::currentZoneName
*string currentZoneName()
Returns the name of the current time zone for the current absolute date/time value (ex: "CEST" for Ce...
<date>::absolute
bool absolute()
Returns True if the date is an absolute date/time value.
<date>::zone
*TimeZone zone()
Returns a Qore::TimeZone object for the time zone of the date/time value; returns NOTHING for relativ...
<date>::durationSecondsFloat
float durationSecondsFloat()
Returns a floating-point value representing the the number of seconds of duration in the value of the...
<date>::getEpochMilliseconds
int getEpochMilliseconds()
Returns the number of milliseconds since the start of the epoch (1970-01-01Z)
<date>::getEpochSeconds
int getEpochSeconds()
Returns the number of seconds since the start of the epoch (1970-01-01Z) for the current date for abs...
<date>::isDst
bool isDst()
Returns True if the current date/time value is currently in daylight savings time.
<date>::typeCode
int typeCode()
Returns Qore::NT_DATE.
<date>::months
int months()
Returns an integer corresponding to the literal month value in the date (does not calculate a duratio...
<date>::dayOfWeek
int dayOfWeek()
Returns an integer representing the day of the week for the absolute date value (0=Sunday,...
<date>::val
bool val()
Returns False if the date value is all zeros, True if not.
<date>::info
hash< DateTimeInfo > info()
Returns a DateTimeInfo hash for the date (can be either a relative or absolute date)
<date>::relative
bool relative()
Returns True if the date is a relative date/time value.
<date>::isoWeekString
string isoWeekString()
Returns a string representing the ISO-8601 calendar week information for the absolute date (ex: 2006-...
<date>::intp
bool intp()
Returns True because date values can be converted to integers.
<date>::microseconds
int microseconds()
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
<date>::years
int years()
Returns an integer corresponding to the literal year value in the date (does not calculate a duration...
<date>::minutes
int minutes()
Returns an integer corresponding to the literal minute value in the date (does not calculate a durati...
<date>::getEpochSecondsLocalTime
int getEpochSecondsLocalTime()
Returns the number of seconds since the start of the epoch (1970-01-01) for the current date in the l...
<date>::isoDayOfWeek
int isoDayOfWeek()
Returns an integer representing the ISO-8601 day of the week for the absolute date value (1=Monday,...
<date>::strp
bool strp()
Returns True because boolean values can be converted to strings.
<date>::isoWeekHash
hash< IsoWeekInfo > isoWeekHash()
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date...
<date>::dayNumber
int dayNumber()
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
<date>::durationSeconds
int durationSeconds()
Returns an integer value representing the the number of seconds of time duration in the date value (c...
<date>::format
string format(string format)
Returns a formatted string for the date value.
<date>::durationMicroseconds
int durationMicroseconds()
Returns an integer value representing the the number of microseconds of time duration in the date val...
<value>
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition Pseudo_QC_All.dox.h:6
Qore::date
date date(date dt)
Returns the date passed.
Qore::hash
hash< auto > hash(object obj)
Returns a hash of an object's members.
Qore
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3