Qore Programming Language Reference Manual 1.14.2
Loading...
Searching...
No Matches
Pseudo_QC_Date.dox.h
1
3namespace Qore {
5/***/
6class <date> : public <value> {
7
8public:
10
17bool absolute();
18
19public:
21
32
33public:
35
50
51public:
53
70
71public:
73
87int days();
88
89public:
91
119
120public:
122
152
153public:
155
185
186public:
188
212
213public:
215
231string format(string format);
232
233public:
235
248
249public:
251
264
265public:
267
278
279public:
281
295int hours();
296
297public:
299
313hash<DateTimeInfo> info();
314
315public:
317
328bool intp();
329
330public:
332
342bool isDst();
343
344public:
346
363
364public:
366
384hash<IsoWeekInfo> isoWeekHash();
385
386public:
388
405
406public:
408
425
426public:
428
443
444public:
446
463
464public:
466
481
482public:
484
498int months();
499
500public:
502
509bool relative();
510
511public:
513
530
531public:
533
544bool strp();
545
546public:
548
560
561public:
563
577bool val();
578
579public:
581
593int years();
594
595public:
597
608};
609}
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
Methods in this pseudo-class can be executed on date/time value types.
Definition: Pseudo_QC_Date.dox.h:6
int hours()
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration...
int days()
Returns an integer corresponding to the literal day value in the date (does not calculate a duration)
int durationMilliseconds()
Returns an integer value representing the the number of milliseconds of time duration in the date val...
date midnight()
Returns midnight on the given date (strips the time component on the new value)
int getUtcOffset()
Returns the time zone offset for the current time in seconds east of UTC or -1 for relative date/time...
int seconds()
Returns an integer corresponding to the literal second value in the date (does not calculate a durati...
int milliseconds()
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a d...
*string currentZoneName()
Returns the name of the current time zone for the current absolute date/time value (ex: "CEST" for Ce...
bool absolute()
Returns True if the date is an absolute date/time value.
*TimeZone zone()
Returns a Qore::TimeZone object for the time zone of the date/time value; returns NOTHING for relativ...
float durationSecondsFloat()
Returns a floating-point value representing the the number of seconds of duration in the value of the...
int getEpochSeconds()
Returns the number of seconds since the start of the epoch (1970-01-01Z) for the current date for abs...
bool isDst()
Returns True if the current date/time value is currently in daylight savings time.
int typeCode()
Returns Qore::NT_DATE.
int months()
Returns an integer corresponding to the literal month value in the date (does not calculate a duratio...
int dayOfWeek()
Returns an integer representing the day of the week for the absolute date value (0=Sunday,...
bool val()
Returns False if the date value is all zeros, True if not.
hash< DateTimeInfo > info()
Returns a DateTimeInfo hash for the date (can be either a relative or absolute date)
bool relative()
Returns True if the date is a relative date/time value.
string isoWeekString()
Returns a string representing the ISO-8601 calendar week information for the absolute date (ex: 2006-...
bool intp()
Returns True because date values can be converted to integers.
int microseconds()
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
int years()
Returns an integer corresponding to the literal year value in the date (does not calculate a duration...
int minutes()
Returns an integer corresponding to the literal minute value in the date (does not calculate a durati...
int getEpochSecondsLocalTime()
Returns the number of seconds since the start of the epoch (1970-01-01) for the current date in the l...
int isoDayOfWeek()
Returns an integer representing the ISO-8601 day of the week for the absolute date value (1=Monday,...
bool strp()
Returns True because boolean values can be converted to strings.
hash< IsoWeekInfo > isoWeekHash()
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date...
int dayNumber()
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
int durationSeconds()
Returns an integer value representing the the number of seconds of time duration in the date value (c...
string format(string format)
Returns a formatted string for the date value.
int durationMicroseconds()
Returns an integer value representing the the number of microseconds of time duration in the date val...
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
date date()
This function just returns 1970-01-01Z.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2