Qore Programming Language Reference Manual: lib/Pseudo_QC_Date.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
Pseudo_QC_Date.dox.h
1 namespace Qore {
4
5 class <date> : public <value> {
6
7 public:
9
16 bool absolute();
17
18 public:
20
30 *string currentZoneName();
31
32 public:
34
48 int days();
49
50 public:
52
78 int durationMicroseconds();
79
80 public:
82
110 int durationMilliseconds();
111
112 public:
114
142 int durationSeconds();
143
144 public:
146
162 string format(string format);
163
164 public:
166
178 int getEpochSeconds();
179
180 public:
182
194 int getEpochSecondsLocalTime();
195
196 public:
198
208 int getUtcOffset();
209
210 public:
212
226 int hours();
227
228 public:
230
244 hash info();
245
246 public:
248
259 bool intp();
260
261 public:
263
273 bool isDst();
274
275 public:
277
293 int microseconds();
294
295 public:
297
311 date midnight();
312
313 public:
315
331 int milliseconds();
332
333 public:
335
349 int minutes();
350
351 public:
353
367 int months();
368
369 public:
371
378 bool relative();
379
380 public:
382
398 int seconds();
399
400 public:
402
413 bool strp();
414
415 public:
417
428 int typeCode();
429
430 public:
432
446 bool val();
447
448 public:
450
462 int years();
463
464 public:
466
476 *TimeZone zone();
477 };
478 };
Qore::date
date date(date dt)
Returns the date passed.
<date>::format
string format(string format)
Returns a formatted string for the date value.
<date>::durationMilliseconds
int durationMilliseconds()
Returns an integer value representing the the number of milliseconds of time duration in the date val...
<date>::relative
bool relative()
Returns True if the date is a relative 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>::currentZoneName
*string currentZoneName()
Returns the name of the current time zone for the current absolute date/time value (ex: "CEST" for Ce...
<date>::strp
bool strp()
Returns True because boolean values can be converted to strings.
<date>::info
hash info()
Returns a hash of broken-down date/time information for the date (can be either a relative or absolut...
<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:5
<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>::hours
int hours()
Returns an integer corresponding to the literal hour value in the date (does not calculate a duration...
<date>::microseconds
int microseconds()
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
<date>::intp
bool intp()
Returns True because date values can be converted to integers.
<date>::isDst
bool isDst()
Returns True if the current date/time value is currently in daylight savings time.
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:6
<date>::milliseconds
int milliseconds()
Returns an integer corresponding to the literal millisecond value in the date (does not calculate a d...
<date>
Methods in this pseudo-class can be executed on date/time value types.
Definition: Pseudo_QC_Date.dox.h:5
<date>::midnight
date midnight()
Returns midnight on the given date (strips the time component on the new value)
<date>::months
int months()
Returns an integer corresponding to the literal month value in the date (does not calculate a duratio...
<date>::val
bool val()
Returns False if the date value is all zeros, True if not.
<date>::absolute
bool absolute()
Returns True if the date is an absolute date/time value.
<date>::getEpochSeconds
int getEpochSeconds()
Returns the number of seconds since the start of the epoch (1970-01-01Z) for the current date for ref...
<date>::minutes
int minutes()
Returns an integer corresponding to the literal minute value in the date (does not calculate a durati...
<date>::durationSeconds
int durationSeconds()
Returns an integer value representing the the number of seconds of time duration in the date value (c...
<date>::years
int years()
Returns an integer corresponding to the literal year value in the date (does not calculate a duration...
<date>::typeCode
int typeCode()
Returns Qore::NT_DATE.
Qore::hash
hash hash(object obj)
Returns a hash of an object's members.
<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>::seconds
int seconds()
Returns an integer corresponding to the literal second value in the date (does not calculate a durati...
<date>::durationMicroseconds
int durationMicroseconds()
Returns an integer value representing the the number of microseconds of time duration in the date val...
<date>::days
int days()
Returns an integer corresponding to the literal day value in the date (does not calculate a duration)...