Pseudo_QC_Date.dox.h
namespace Qore {
/***/
class <date> : public <value> {
public:
bool absolute();
public:
*string currentZoneName();
public:
int dayNumber();
public:
int dayOfWeek();
public:
int days();
public:
int durationMicroseconds();
public:
int durationMilliseconds();
public:
int durationSeconds();
public:
float durationSecondsFloat();
public:
string format(string format);
public:
int getEpochSeconds();
public:
int getEpochSecondsLocalTime();
public:
int getUtcOffset();
public:
int hours();
public:
hash<DateTimeInfo> info();
public:
bool intp();
public:
bool isDst();
public:
int isoDayOfWeek();
public:
hash<IsoWeekInfo> isoWeekHash();
public:
string isoWeekString();
public:
int microseconds();
public:
date midnight();
public:
int milliseconds();
public:
int minutes();
public:
int months();
public:
bool relative();
public:
int seconds();
public:
bool strp();
public:
int typeCode();
public:
bool val();
public:
int years();
public:
*TimeZone zone();
};
};
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.
<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>::isoWeekString
string isoWeekString()
Returns a string representing the ISO-8601 calendar week information for the absolute date (ex: 2006-...
<date>::microseconds
int microseconds()
Returns an integer corresponding to the literal microsecond value in the date (does not calculate a d...
<date>::dayNumber
int dayNumber()
Returns an integer representing the ordinal day number in the year (corresponding to the ISO-8601 day...
<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>::dayOfWeek
int dayOfWeek()
Returns an integer representing the day of the week for the absolute date value (0=Sunday, 6=Saturday)
<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>::info
hash< DateTimeInfo > info()
Returns a DateTimeInfo hash for the date (can be either a relative or absolute date) ...
<date>::val
bool val()
Returns False if the date value is all zeros, True if not.
<date>::isoWeekHash
hash< IsoWeekInfo > isoWeekHash()
Returns an IsoWeekInfo hash representing the ISO-8601 calendar week information for the absolute date...
<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 abs...
<date>::minutes
int minutes()
Returns an integer corresponding to the literal minute value in the date (does not calculate a durati...
<date>::isoDayOfWeek
int isoDayOfWeek()
Returns an integer representing the ISO-8601 day of the week for the absolute date value (1=Monday...
<date>::durationSeconds
int durationSeconds()
Returns an integer value representing the the number of seconds of time duration in the date value (c...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
<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.
<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>::durationSecondsFloat
float durationSecondsFloat()
Returns a floating-point value representing the the number of seconds of duration in the value of the...
<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)...