\hypertarget{class_qore_1_1zzz8datezzz9}{}\section{Qore\+:\+:zzz8datezzz9 Class Reference}
\label{class_qore_1_1zzz8datezzz9}\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}


Methods in this pseudo-\/class can be executed on \mbox{\hyperlink{basic_data_types_date}{date/time value types}}.  




Inheritance diagram for Qore\+:\+:zzz8datezzz9\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=132pt]{class_qore_1_1zzz8datezzz9__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a4489e87e23f140760686d0ed1c66eff4}{absolute}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the date is an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time value}}. \end{DoxyCompactList}\item 
\+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a3f00e7b1ba04e6a216ba190d54840bc2}{current\+Zone\+Name}} ()
\begin{DoxyCompactList}\small\item\em Returns the name of the current time zone for the current \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time value}} (ex\+: {\ttfamily \char`\"{}\+C\+E\+S\+T\char`\"{}} for Central European Summer Time for a time during summer time or {\ttfamily \char`\"{}\+C\+E\+T\char`\"{}} for Central European Time for the same time zone while daylight savings time is not active) or a U\+TC offset (like {\ttfamily \char`\"{}+01\char`\"{}}) or {\ttfamily \char`\"{}\+U\+T\+C\char`\"{}} or \mbox{\hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+NG}} for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ae0566a68783890f894213258833b0b37}{day\+Number}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer representing the ordinal day number in the year (corresponding to the \href{http://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates}{\tt I\+S\+O-\/8601 day number}) for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a776388307af89346ac4456a09d8fb22d}{day\+Of\+Week}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer representing the day of the week for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value (0=Sunday, 6=Saturday) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a04d1e263ad79ed6ef30e26e49dcc4064}{days}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal day value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_afd98bf51bd4870ddc8469e0bc19f2b9c}{duration\+Microseconds}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer value representing the the number of microseconds of time duration in the date value (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a0a1bf587b81314cbc5cbabd4cc618476}{duration\+Milliseconds}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer value representing the the number of milliseconds of time duration in the date value (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aef0e1961cbf4e1f2b53b789d0727681f}{duration\+Seconds}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer value representing the the number of seconds of time duration in the date value (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga113d18216af1bdb70545081b6a9892ef}{float}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a51af864148656e9fe7dd6e9bc1aba1df}{duration\+Seconds\+Float}} ()
\begin{DoxyCompactList}\small\item\em Returns a floating-\/point value representing the the number of seconds of duration in the value of the date passed (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aeff0dd69a9ef8f228b54ba5543b2e3c6}{format}} (\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} format)
\begin{DoxyCompactList}\small\item\em Returns a formatted string for the date value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a61fbd9f6e28a6af34d666ecb7b0bdad2}{get\+Epoch\+Seconds}} ()
\begin{DoxyCompactList}\small\item\em Returns the number of seconds since the start of the epoch (1970-\/01-\/01Z) for the current date for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time values}}; returns 0 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ac7dff505bad9f169f79215cdd3f368dc}{get\+Epoch\+Seconds\+Local\+Time}} ()
\begin{DoxyCompactList}\small\item\em Returns the number of seconds since the start of the epoch (1970-\/01-\/01) for the current date in the local time zone for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time values}}; returns 0 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a281e6ff94edaf0a601e604bca2dc52f7}{get\+Utc\+Offset}} ()
\begin{DoxyCompactList}\small\item\em Returns the time zone offset for the current time in seconds east of U\+TC or -\/1 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a020025625850084710c7eddd0fa2ab51}{hours}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal hour value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga5182bb860e3837e1eb337e85a9b3ebd6}{hash}}$<$ \mbox{\hyperlink{struct_qore_1_1_date_time_info}{Date\+Time\+Info}} $>$ \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a1ec48e2108e1b70a2ef9ff85c672e161}{info}} ()
\begin{DoxyCompactList}\small\item\em Returns a \mbox{\hyperlink{struct_qore_1_1_date_time_info}{Date\+Time\+Info}} hash for the date (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aa834702a304a20d6443014ae09e73be9}{intp}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} because date values can be converted to integers. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a657e9b7211b84a2f9df8f3ccb5b91ffb}{is\+Dst}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the current date/time value is currently in daylight savings time. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ad38a12c3b55fab4825bbb7d6125df1e5}{iso\+Day\+Of\+Week}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer representing the I\+S\+O-\/8601 day of the week for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value (1=Monday, 7=Sunday) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga5182bb860e3837e1eb337e85a9b3ebd6}{hash}}$<$ \mbox{\hyperlink{struct_qore_1_1_iso_week_info}{Iso\+Week\+Info}} $>$ \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ada1be7d54d1a218ed90b7ee9cdb5130a}{iso\+Week\+Hash}} ()
\begin{DoxyCompactList}\small\item\em Returns an \mbox{\hyperlink{struct_qore_1_1_iso_week_info}{Iso\+Week\+Info}} hash representing the I\+S\+O-\/8601 calendar week information for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} (hash keys\+: {\ttfamily \char`\"{}year\char`\"{}}, {\ttfamily \char`\"{}week\char`\"{}}, {\ttfamily \char`\"{}day\char`\"{}}) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aa03daafa0fe01dfa0abf447d8ca135fd}{iso\+Week\+String}} ()
\begin{DoxyCompactList}\small\item\em Returns a string representing the I\+S\+O-\/8601 calendar week information for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} (ex\+: 2006-\/01-\/01 = \char`\"{}2005-\/\+W52-\/7\char`\"{}) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aacf57fbebe79940acf8012374393efa5}{microseconds}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal microsecond value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__date__and__time__functions_gaa80ee453b6a5653ac685d7e290c74e3f}{date}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a1946f38ad9528c2e80552b8e2bc39f62}{midnight}} ()
\begin{DoxyCompactList}\small\item\em Returns midnight on the given date (strips the time component on the new value) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a3c9429701ac6b58b051352abf153b735}{milliseconds}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal millisecond value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_abac32dbfcda338145542f5dd5ddd37af}{minutes}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal minute value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a75eb73a84fad87f7b94e932d3afb929a}{months}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal month value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a950a764a23c240b3aa49ccb335538a65}{relative}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the date is a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time value}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a2c3593e5034555434a59b1637b1eb2af}{seconds}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal second value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ad7e86f987c8889fde5c36cf1fbc8b0d3}{strp}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} because boolean values can be converted to strings. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a7167b9d2407c8a6448f53e3ebc1670a1}{type\+Code}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__type__code__constants_ga230aa338eb63ada8096e318095f8052c}{Qore\+::\+N\+T\+\_\+\+D\+A\+TE}}. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a798148fc6daeaf36a5413d731cab40e6}{val}} ()
\begin{DoxyCompactList}\small\item\em Returns \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if the date value is all zeros, \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if not. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ab52a41f7b16ad2b9115dd1ae05e0b21c}{years}} ()
\begin{DoxyCompactList}\small\item\em Returns an integer corresponding to the literal year value in the date (does not calculate a duration) \end{DoxyCompactList}\item 
\+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{class_qore_1_1_time_zone}{Time\+Zone}} \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a4a7478124248ca3f481e52598244e2ae}{zone}} ()
\begin{DoxyCompactList}\small\item\em Returns a \mbox{\hyperlink{class_qore_1_1_time_zone}{Qore\+::\+Time\+Zone}} object for the time zone of the date/time value; returns \mbox{\hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+NG}} for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Methods in this pseudo-\/class can be executed on \mbox{\hyperlink{basic_data_types_date}{date/time value types}}. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a4489e87e23f140760686d0ed1c66eff4}\label{class_qore_1_1zzz8datezzz9_a4489e87e23f140760686d0ed1c66eff4}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!absolute@{absolute}}
\index{absolute@{absolute}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{absolute()}{absolute()}}
{\footnotesize\ttfamily bool Qore\+::zzz8datezzz9\+::absolute (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the date is an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time value}}. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the date is an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time value}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
bool b = d.absolute();
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a3f00e7b1ba04e6a216ba190d54840bc2}\label{class_qore_1_1zzz8datezzz9_a3f00e7b1ba04e6a216ba190d54840bc2}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!current\+Zone\+Name@{current\+Zone\+Name}}
\index{current\+Zone\+Name@{current\+Zone\+Name}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{current\+Zone\+Name()}{currentZoneName()}}
{\footnotesize\ttfamily \+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::zzz8datezzz9\+::current\+Zone\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the name of the current time zone for the current \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time value}} (ex\+: {\ttfamily \char`\"{}\+C\+E\+S\+T\char`\"{}} for Central European Summer Time for a time during summer time or {\ttfamily \char`\"{}\+C\+E\+T\char`\"{}} for Central European Time for the same time zone while daylight savings time is not active) or a U\+TC offset (like {\ttfamily \char`\"{}+01\char`\"{}}) or {\ttfamily \char`\"{}\+U\+T\+C\char`\"{}} or \mbox{\hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+NG}} for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. 

\begin{DoxyReturn}{Returns}
the name of the current time zone for the current \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time value}} (ex\+: {\ttfamily \char`\"{}\+C\+E\+S\+T\char`\"{}} for Central European Summer Time for a time during summer time or {\ttfamily \char`\"{}\+C\+E\+T\char`\"{}} for Central European Time for the same time zone while daylight savings time is not active) or a U\+TC offset (like {\ttfamily \char`\"{}+01\char`\"{}}) or {\ttfamily \char`\"{}\+U\+T\+C\char`\"{}} or \mbox{\hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+NG}} for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
*string zn = d.currentZoneName();
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_ae0566a68783890f894213258833b0b37}\label{class_qore_1_1zzz8datezzz9_ae0566a68783890f894213258833b0b37}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!day\+Number@{day\+Number}}
\index{day\+Number@{day\+Number}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{day\+Number()}{dayNumber()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::day\+Number (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer representing the ordinal day number in the year (corresponding to the \href{http://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates}{\tt I\+S\+O-\/8601 day number}) for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value. 

\begin{DoxyReturn}{Returns}
an integer representing the ordinal day number in the year (corresponding to the \href{http://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates}{\tt I\+S\+O-\/8601 day number}) for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value; if a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}} value is used, then this method will return 0
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int dn = dt.dayNumber();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_gaec9d8c1ba3a39869904f27e8c0706589}{Qore\+::get\+\_\+day\+\_\+number()}}
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+12 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a776388307af89346ac4456a09d8fb22d}\label{class_qore_1_1zzz8datezzz9_a776388307af89346ac4456a09d8fb22d}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!day\+Of\+Week@{day\+Of\+Week}}
\index{day\+Of\+Week@{day\+Of\+Week}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{day\+Of\+Week()}{dayOfWeek()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::day\+Of\+Week (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer representing the day of the week for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value (0=Sunday, 6=Saturday) 

\begin{DoxyReturn}{Returns}
an integer representing the day of the week for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value (0=Sunday, 6=Saturday); if a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}} value is used, then this method will return 0
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int dn = dt.dayOfWeek();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_gaa546956fb71d56f18c903aff1f3fc01a}{Qore\+::get\+\_\+day\+\_\+of\+\_\+week()}}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ad38a12c3b55fab4825bbb7d6125df1e5}{Qore\+::zzz8datezzz9\+::iso\+Day\+Of\+Week()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+12 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a04d1e263ad79ed6ef30e26e49dcc4064}\label{class_qore_1_1zzz8datezzz9_a04d1e263ad79ed6ef30e26e49dcc4064}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!days@{days}}
\index{days@{days}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{days()}{days()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::days (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal day value in the date (does not calculate a duration) 

The date value can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date.

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal day value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.days();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga12df9bddb196820c9278f7884d6816f0}{get\+\_\+days(date)}} 
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_afd98bf51bd4870ddc8469e0bc19f2b9c}\label{class_qore_1_1zzz8datezzz9_afd98bf51bd4870ddc8469e0bc19f2b9c}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!duration\+Microseconds@{duration\+Microseconds}}
\index{duration\+Microseconds@{duration\+Microseconds}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{duration\+Microseconds()}{durationMicroseconds()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::duration\+Microseconds (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer value representing the the number of microseconds of time duration in the date value (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) 

\begin{DoxyReturn}{Returns}
an integer value representing the the number of microseconds in the date value; if the value is a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}}, the value is normalized to microseconds and the integer microseconds value is returned, if the value is an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}}, the duration in microseconds is calculated from the present time; so if the present time is sent as an argument, 0 is returned, if a future date is used, the number of microseconds from the present time to the future date is returned, if an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} in the past is used, also 0 is returned (the pseudo-\/method does not calculate microsecond differences for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute dates}} in the past (for this use \mbox{\hyperlink{date_time_arithmetic}{Date/\+Time Arithmetic}} instead); this method can only return a negative value if passed a relative date/time value
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int us = PT2M15S3u.durationMicroseconds(); \textcolor{comment}{# returns 135000003}
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga314baf84678a796209a67156b4f5d8b8}{get\+\_\+duration\+\_\+microseconds()}}
\item to get the literal microseconds integer value from a date/time value without calculating a duration, use \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aacf57fbebe79940acf8012374393efa5}{Qore\+::zzz8datezzz9\+::microseconds()}}
\end{DoxyItemize}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a51af864148656e9fe7dd6e9bc1aba1df}{Qore\+::zzz8datezzz9\+::duration\+Seconds\+Float()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aef0e1961cbf4e1f2b53b789d0727681f}{Qore\+::zzz8datezzz9\+::duration\+Seconds()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a0a1bf587b81314cbc5cbabd4cc618476}{Qore\+::zzz8datezzz9\+::duration\+Milliseconds()}}
\end{DoxyItemize}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+7 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a0a1bf587b81314cbc5cbabd4cc618476}\label{class_qore_1_1zzz8datezzz9_a0a1bf587b81314cbc5cbabd4cc618476}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!duration\+Milliseconds@{duration\+Milliseconds}}
\index{duration\+Milliseconds@{duration\+Milliseconds}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{duration\+Milliseconds()}{durationMilliseconds()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::duration\+Milliseconds (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer value representing the the number of milliseconds of time duration in the date value (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) 

The duration in milliseconds is calculated and any fractional milliseconds are truncated (no rounding is performed)

\begin{DoxyReturn}{Returns}
an integer value representing the the number of milliseconds in the date value; if the value is a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}}, the value is normalized to milliseconds and the integer milliseconds value is returned, if the value is an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}}, the duration in milliseconds is calculated from the present time; so if the present time is sent as an argument, 0 is returned, if a future date is used, the number of milliseconds from the present time to the future date is returned, if an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} in the past is used, also 0 is returned (the pseudo-\/method does not calculate millisecond differences for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute dates}} in the past (for this use \mbox{\hyperlink{date_time_arithmetic}{Date/\+Time Arithmetic}} instead); this method can only return a negative value if passed a relative date/time value
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int us = PT2M15S3u.durationMilliseconds(); \textcolor{comment}{# returns 135000}
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga9577b42c40fd075fb0bcb5ecabec75a1}{get\+\_\+duration\+\_\+milliseconds()}}
\item to get the literal milliseconds integer value from a date/time value without calculating a duration, use \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a3c9429701ac6b58b051352abf153b735}{Qore\+::zzz8datezzz9\+::milliseconds()}}
\end{DoxyItemize}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a51af864148656e9fe7dd6e9bc1aba1df}{Qore\+::zzz8datezzz9\+::duration\+Seconds\+Float()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aef0e1961cbf4e1f2b53b789d0727681f}{Qore\+::zzz8datezzz9\+::duration\+Seconds()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_afd98bf51bd4870ddc8469e0bc19f2b9c}{Qore\+::zzz8datezzz9\+::duration\+Microseconds()}}
\end{DoxyItemize}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+7 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_aef0e1961cbf4e1f2b53b789d0727681f}\label{class_qore_1_1zzz8datezzz9_aef0e1961cbf4e1f2b53b789d0727681f}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!duration\+Seconds@{duration\+Seconds}}
\index{duration\+Seconds@{duration\+Seconds}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{duration\+Seconds()}{durationSeconds()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::duration\+Seconds (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer value representing the the number of seconds of time duration in the date value (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) 

The duration in seconds is calculated and any fractional seconds are truncated (no rounding is performed)

\begin{DoxyReturn}{Returns}
an integer value representing the the number of seconds in the date value; if the value is a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}}, the value is normalized to seconds and the integer seconds value is returned, if the value is an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}}, the duration in seconds is calculated from the present time; so if the present time is sent as an argument, 0 is returned, if a future date is used, the number of seconds from the present time to the future date is returned, if an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} in the past is used, also 0 is returned (the pseudo-\/method does not calculate second differences for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute dates}} in the past (for this use \mbox{\hyperlink{date_time_arithmetic}{Date/\+Time Arithmetic}} instead); this method can only return a negative value if passed a relative date/time value
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int us = PT2M15S3u.durationSeconds(); \textcolor{comment}{# returns 135}
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga98ef4a4d08621926630c15c1bbd769df}{get\+\_\+duration\+\_\+seconds()}}
\item to get the literal seconds integer value from a date/time value without calculating a duration, use \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a2c3593e5034555434a59b1637b1eb2af}{Qore\+::zzz8datezzz9\+::seconds()}}
\end{DoxyItemize}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a51af864148656e9fe7dd6e9bc1aba1df}{Qore\+::zzz8datezzz9\+::duration\+Seconds\+Float()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a0a1bf587b81314cbc5cbabd4cc618476}{Qore\+::zzz8datezzz9\+::duration\+Milliseconds()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_afd98bf51bd4870ddc8469e0bc19f2b9c}{Qore\+::zzz8datezzz9\+::duration\+Microseconds()}}
\end{DoxyItemize}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+7 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a51af864148656e9fe7dd6e9bc1aba1df}\label{class_qore_1_1zzz8datezzz9_a51af864148656e9fe7dd6e9bc1aba1df}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!duration\+Seconds\+Float@{duration\+Seconds\+Float}}
\index{duration\+Seconds\+Float@{duration\+Seconds\+Float}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{duration\+Seconds\+Float()}{durationSecondsFloat()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga113d18216af1bdb70545081b6a9892ef}{float}} Qore\+::zzz8datezzz9\+::duration\+Seconds\+Float (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns a floating-\/point value representing the the number of seconds of duration in the value of the date passed (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) 

The duration in seconds is calculated and any fractional seconds are returned as digits to the right of the decimal point.

\begin{DoxyReturn}{Returns}
a floating-\/point vaaue representing the the number of seconds of duration in the value of the date passed; if the argument is a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}}, the value is normalized to seconds and the floating-\/point seconds value is returned with microseconds providing the digits to the right of the decimal place, if the argument is an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}}, the duration in seconds is calculated from the present time; so if the present time is sent as an argument, 0 is returned, if a future date is used, the number of seconds from the present time to the future date is returned, if an \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} in the past is passed as an argument, also 0 is returned (the function does not calculate second differences for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute dates}} in the past (for this use \mbox{\hyperlink{date_time_arithmetic}{Date/\+Time Arithmetic}} instead); this function can only return a negative value if passed a relative date/time value
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
float dt = PT2M15S3u.durationSecondsFloat(); \textcolor{comment}{# returns 135.000003}
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item equivalent to \mbox{\hyperlink{group__date__and__time__functions_gac96ed9dc0e5436a5f77c7fbeb5c5842e}{get\+\_\+duration\+\_\+seconds\+\_\+f()}}
\item to get the literal seconds integer value from a date/time value without calculating a duration, use \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a2c3593e5034555434a59b1637b1eb2af}{Qore\+::zzz8datezzz9\+::seconds()}}
\end{DoxyItemize}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aef0e1961cbf4e1f2b53b789d0727681f}{Qore\+::zzz8datezzz9\+::duration\+Seconds()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a0a1bf587b81314cbc5cbabd4cc618476}{Qore\+::zzz8datezzz9\+::duration\+Milliseconds()}}
\item \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_afd98bf51bd4870ddc8469e0bc19f2b9c}{Qore\+::zzz8datezzz9\+::duration\+Microseconds()}}
\end{DoxyItemize}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+12 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_aeff0dd69a9ef8f228b54ba5543b2e3c6}\label{class_qore_1_1zzz8datezzz9_aeff0dd69a9ef8f228b54ba5543b2e3c6}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!format@{format}}
\index{format@{format}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{format()}{format()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::zzz8datezzz9\+::format (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}}]{format }\end{DoxyParamCaption})}



Returns a formatted string for the date value. 

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}

\begin{DoxyParams}{Parameters}
{\em format} & a string giving the format for the date; see \mbox{\hyperlink{group__date__and__time__functions_date_formatting}{Date Formatting Codes}} for more information about this string\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a formatted string for a date argument passed
\end{DoxyReturn}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
string str = d.format(\textcolor{stringliteral}{"Day, Mon D, YYYY-MM-DD HH:mm:SS"});
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000008}{Bug}}]there is no locale support; day and month names and abbreviations are only returned in English\end{DoxyRefDesc}


\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_gad5572fcb49964bfe3005e144da579361}{format\+\_\+date(string, date)}} 
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a61fbd9f6e28a6af34d666ecb7b0bdad2}\label{class_qore_1_1zzz8datezzz9_a61fbd9f6e28a6af34d666ecb7b0bdad2}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!get\+Epoch\+Seconds@{get\+Epoch\+Seconds}}
\index{get\+Epoch\+Seconds@{get\+Epoch\+Seconds}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{get\+Epoch\+Seconds()}{getEpochSeconds()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::get\+Epoch\+Seconds (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the number of seconds since the start of the epoch (1970-\/01-\/01Z) for the current date for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time values}}; returns 0 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. 

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int secs = d.getEpochSeconds();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
the number of seconds since the start of the epoch (1970-\/01-\/01Z) for the current date for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time values}}; returns 0 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}
\end{DoxyReturn}
\begin{DoxySince}{Since}
Qore 0.\+8.\+8 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_ac7dff505bad9f169f79215cdd3f368dc}\label{class_qore_1_1zzz8datezzz9_ac7dff505bad9f169f79215cdd3f368dc}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!get\+Epoch\+Seconds\+Local\+Time@{get\+Epoch\+Seconds\+Local\+Time}}
\index{get\+Epoch\+Seconds\+Local\+Time@{get\+Epoch\+Seconds\+Local\+Time}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{get\+Epoch\+Seconds\+Local\+Time()}{getEpochSecondsLocalTime()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::get\+Epoch\+Seconds\+Local\+Time (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the number of seconds since the start of the epoch (1970-\/01-\/01) for the current date in the local time zone for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time values}}; returns 0 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. 

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int secs = d.getEpochSecondsLocalTime();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
the number of seconds since the start of the epoch (1970-\/01-\/01) for the current date in the local time zone for \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date/time values}}; returns 0 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}
\end{DoxyReturn}
\begin{DoxySince}{Since}
Qore 0.\+8.\+8 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a281e6ff94edaf0a601e604bca2dc52f7}\label{class_qore_1_1zzz8datezzz9_a281e6ff94edaf0a601e604bca2dc52f7}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!get\+Utc\+Offset@{get\+Utc\+Offset}}
\index{get\+Utc\+Offset@{get\+Utc\+Offset}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{get\+Utc\+Offset()}{getUtcOffset()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::get\+Utc\+Offset (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns the time zone offset for the current time in seconds east of U\+TC or -\/1 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. 

\begin{DoxyReturn}{Returns}
the time zone offset for the current time in seconds east of U\+TC or -\/1 for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int utcoffset = d.getUtcOffset();
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a020025625850084710c7eddd0fa2ab51}\label{class_qore_1_1zzz8datezzz9_a020025625850084710c7eddd0fa2ab51}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!hours@{hours}}
\index{hours@{hours}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{hours()}{hours()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::hours (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal hour value in the date (does not calculate a duration) 

The date value can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date.

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal hour value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.hours();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga83e582adb5ad1401911345ba306dabd2}{get\+\_\+hours(date)}} 
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a1ec48e2108e1b70a2ef9ff85c672e161}\label{class_qore_1_1zzz8datezzz9_a1ec48e2108e1b70a2ef9ff85c672e161}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!info@{info}}
\index{info@{info}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{info()}{info()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga5182bb860e3837e1eb337e85a9b3ebd6}{hash}}$<$\mbox{\hyperlink{struct_qore_1_1_date_time_info}{Date\+Time\+Info}}$>$ Qore\+::zzz8datezzz9\+::info (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns a \mbox{\hyperlink{struct_qore_1_1_date_time_info}{Date\+Time\+Info}} hash for the date (can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date) 

\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
hash<DateTimeInfo> h = \mbox{\hyperlink{group__date__and__time__functions_ga55f71c05ed60ce9346f4f335a08caf55}{date\_info}}(date);
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyReturn}{Returns}
a \mbox{\hyperlink{struct_qore_1_1_date_time_info}{Date\+Time\+Info}} hash for the given date argument
\end{DoxyReturn}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga55f71c05ed60ce9346f4f335a08caf55}{date\+\_\+info(date)}}
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+8 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_aa834702a304a20d6443014ae09e73be9}\label{class_qore_1_1zzz8datezzz9_aa834702a304a20d6443014ae09e73be9}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!intp@{intp}}
\index{intp@{intp}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{intp()}{intp()}}
{\footnotesize\ttfamily bool Qore\+::zzz8datezzz9\+::intp (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} because date values can be converted to integers. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} because date values can be converted to integers
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\textcolor{keywordflow}{if} (n.intp())
    \mbox{\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}}(\textcolor{stringliteral}{"%y: can be converted to an integer: %d\(\backslash\)n"}, n, \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}}(n));
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a657e9b7211b84a2f9df8f3ccb5b91ffb}\label{class_qore_1_1zzz8datezzz9_a657e9b7211b84a2f9df8f3ccb5b91ffb}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!is\+Dst@{is\+Dst}}
\index{is\+Dst@{is\+Dst}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{is\+Dst()}{isDst()}}
{\footnotesize\ttfamily bool Qore\+::zzz8datezzz9\+::is\+Dst (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the current date/time value is currently in daylight savings time. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the current date/time value is currently in daylight savings time; always returns \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
bool b = d.isDst();
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_ad38a12c3b55fab4825bbb7d6125df1e5}\label{class_qore_1_1zzz8datezzz9_ad38a12c3b55fab4825bbb7d6125df1e5}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!iso\+Day\+Of\+Week@{iso\+Day\+Of\+Week}}
\index{iso\+Day\+Of\+Week@{iso\+Day\+Of\+Week}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{iso\+Day\+Of\+Week()}{isoDayOfWeek()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::iso\+Day\+Of\+Week (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer representing the I\+S\+O-\/8601 day of the week for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} value (1=Monday, 7=Sunday) 

\begin{DoxyReturn}{Returns}
an integer representing the day of the week for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} passed (1=Monday, 7=Sunday); if a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}} value is used, then this method will return 7
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int dn = dt.isoDayOfWeek();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga64bfe13c03c1b2746bfb5c80f5279e2a}{Qore\+::get\+\_\+iso\+\_\+day\+\_\+of\+\_\+week()}}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a776388307af89346ac4456a09d8fb22d}{Qore\+::zzz8datezzz9\+::day\+Of\+Week()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+12 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_ada1be7d54d1a218ed90b7ee9cdb5130a}\label{class_qore_1_1zzz8datezzz9_ada1be7d54d1a218ed90b7ee9cdb5130a}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!iso\+Week\+Hash@{iso\+Week\+Hash}}
\index{iso\+Week\+Hash@{iso\+Week\+Hash}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{iso\+Week\+Hash()}{isoWeekHash()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga5182bb860e3837e1eb337e85a9b3ebd6}{hash}}$<$\mbox{\hyperlink{struct_qore_1_1_iso_week_info}{Iso\+Week\+Info}}$>$ Qore\+::zzz8datezzz9\+::iso\+Week\+Hash (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an \mbox{\hyperlink{struct_qore_1_1_iso_week_info}{Iso\+Week\+Info}} hash representing the I\+S\+O-\/8601 calendar week information for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} (hash keys\+: {\ttfamily \char`\"{}year\char`\"{}}, {\ttfamily \char`\"{}week\char`\"{}}, {\ttfamily \char`\"{}day\char`\"{}}) 

\begin{DoxyNote}{Note}
that the I\+S\+O-\/8601 year does not always correspond with the calendar year at the end and the beginning of every year (for example 2006-\/01-\/01 in I\+S\+O-\/8601 calendar week format is\+: year=2005, week=52, day=7)
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
an \mbox{\hyperlink{struct_qore_1_1_iso_week_info}{Iso\+Week\+Info}} hash representing the I\+S\+O-\/8601 calendar week information for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} (hash keys\+: {\ttfamily \char`\"{}year\char`\"{}}, {\ttfamily \char`\"{}week\char`\"{}}, {\ttfamily \char`\"{}day\char`\"{}}); if a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}} value is used, then this method will return year=1970, week=1, day=1
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
hash<IsoWeekInfo> h = 2007-05-15.isoWeekHash(); \textcolor{comment}{# returns year=2007, week=20, day=2}
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga2e891572705fb44c6d881bfeb48e8b8e}{Qore\+::get\+\_\+iso\+\_\+week\+\_\+hash()}}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aa03daafa0fe01dfa0abf447d8ca135fd}{Qore\+::zzz8datezzz9\+::iso\+Week\+String()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+12 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_aa03daafa0fe01dfa0abf447d8ca135fd}\label{class_qore_1_1zzz8datezzz9_aa03daafa0fe01dfa0abf447d8ca135fd}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!iso\+Week\+String@{iso\+Week\+String}}
\index{iso\+Week\+String@{iso\+Week\+String}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{iso\+Week\+String()}{isoWeekString()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::zzz8datezzz9\+::iso\+Week\+String (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns a string representing the I\+S\+O-\/8601 calendar week information for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} (ex\+: 2006-\/01-\/01 = \char`\"{}2005-\/\+W52-\/7\char`\"{}) 

\begin{DoxyReturn}{Returns}
a string representing the I\+S\+O-\/8601 calendar week information for the \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute date}} (ex\+: 2006-\/01-\/01 = \char`\"{}2005-\/\+W52-\/7\char`\"{}); if a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date}} value is used, then this method will return {\ttfamily \char`\"{}1970-\/\+W01-\/1\char`\"{}} 
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
string str = 2007-05-15.isoWeekString(); \textcolor{comment}{# returns "2007-W20-2"}
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_gadfb87ebf695f7e037efb64367cdb6626}{Qore\+::get\+\_\+iso\+\_\+week\+\_\+string()}}
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qore_1_1zzz8datezzz9_ada1be7d54d1a218ed90b7ee9cdb5130a}{Qore\+::zzz8datezzz9\+::iso\+Week\+Hash()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
Qore 0.\+8.\+12 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_aacf57fbebe79940acf8012374393efa5}\label{class_qore_1_1zzz8datezzz9_aacf57fbebe79940acf8012374393efa5}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!microseconds@{microseconds}}
\index{microseconds@{microseconds}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{microseconds()}{microseconds()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::microseconds (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal microsecond value in the date (does not calculate a duration) 

The date value can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date.

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal microsecond value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.microseconds();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga8ae5ae186ff94fc2033ee0f6f308688a}{get\+\_\+microseconds(date)}}
\item to get the number of microseconds of duration in a date/time value, use \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_afd98bf51bd4870ddc8469e0bc19f2b9c}{Qore\+::zzz8datezzz9\+::duration\+Microseconds()}} instead 
\end{DoxyItemize}
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a1946f38ad9528c2e80552b8e2bc39f62}\label{class_qore_1_1zzz8datezzz9_a1946f38ad9528c2e80552b8e2bc39f62}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!midnight@{midnight}}
\index{midnight@{midnight}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{midnight()}{midnight()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__date__and__time__functions_gaa80ee453b6a5653ac685d7e290c74e3f}{date}} Qore\+::zzz8datezzz9\+::midnight (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns midnight on the given date (strips the time component on the new value) 

\begin{DoxyReturn}{Returns}
midnight on the given date (strips the time component on the new value)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
date midnight = dt.midnight();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga83dc9f23f27ec426d6eea28dea040bca}{get\+\_\+midnight()}}
\end{DoxyNote}
\begin{DoxySince}{Since}
Qore 0.\+8.\+5 
\end{DoxySince}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a3c9429701ac6b58b051352abf153b735}\label{class_qore_1_1zzz8datezzz9_a3c9429701ac6b58b051352abf153b735}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!milliseconds@{milliseconds}}
\index{milliseconds@{milliseconds}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{milliseconds()}{milliseconds()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::milliseconds (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal millisecond value in the date (does not calculate a duration) 

The date value can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date.

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal millisecond value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.milliseconds();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item equivalent to \mbox{\hyperlink{group__date__and__time__functions_gaabefaf27c91bdc7bf6ffa50b391279ea}{get\+\_\+milliseconds(date)}}
\item to get the number of milliseconds of duration in a date/time value, use \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_a0a1bf587b81314cbc5cbabd4cc618476}{Qore\+::zzz8datezzz9\+::duration\+Milliseconds()}} instead 
\end{DoxyItemize}
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_abac32dbfcda338145542f5dd5ddd37af}\label{class_qore_1_1zzz8datezzz9_abac32dbfcda338145542f5dd5ddd37af}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!minutes@{minutes}}
\index{minutes@{minutes}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{minutes()}{minutes()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::minutes (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal minute value in the date (does not calculate a duration) 

The date value can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date.

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal minute value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.minutes();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga4dbc1e7f615407a2aaa60610e03cf1ea}{get\+\_\+minutes(date)}} 
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a75eb73a84fad87f7b94e932d3afb929a}\label{class_qore_1_1zzz8datezzz9_a75eb73a84fad87f7b94e932d3afb929a}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!months@{months}}
\index{months@{months}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{months()}{months()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::months (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal month value in the date (does not calculate a duration) 

The date value can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date.

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal month value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.months();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga6a37327d1be86abe99b29c133c3fd0bc}{get\+\_\+months(date)}} 
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a950a764a23c240b3aa49ccb335538a65}\label{class_qore_1_1zzz8datezzz9_a950a764a23c240b3aa49ccb335538a65}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!relative@{relative}}
\index{relative@{relative}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{relative()}{relative()}}
{\footnotesize\ttfamily bool Qore\+::zzz8datezzz9\+::relative (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the date is a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time value}}. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if the date is a \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time value}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
bool b = d.relative();
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a2c3593e5034555434a59b1637b1eb2af}\label{class_qore_1_1zzz8datezzz9_a2c3593e5034555434a59b1637b1eb2af}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!seconds@{seconds}}
\index{seconds@{seconds}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{seconds()}{seconds()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::seconds (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal second value in the date (does not calculate a duration) 

The date value can be either a \mbox{\hyperlink{basic_data_types_relative_dates}{relative}} or \mbox{\hyperlink{basic_data_types_absolute_dates}{absolute}} date.

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal second value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.seconds();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga8872de33c58a5b4a2ffe01818f226f48}{get\+\_\+seconds(date)}}
\item to get the number of seconds of duration in a date/time value, use \mbox{\hyperlink{class_qore_1_1zzz8datezzz9_aef0e1961cbf4e1f2b53b789d0727681f}{Qore\+::zzz8datezzz9\+::duration\+Seconds()}} instead 
\end{DoxyItemize}
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_ad7e86f987c8889fde5c36cf1fbc8b0d3}\label{class_qore_1_1zzz8datezzz9_ad7e86f987c8889fde5c36cf1fbc8b0d3}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!strp@{strp}}
\index{strp@{strp}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{strp()}{strp()}}
{\footnotesize\ttfamily bool Qore\+::zzz8datezzz9\+::strp (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} because boolean values can be converted to strings. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} because boolean values can be converted to strings
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
\textcolor{keywordflow}{if} (n.strp())
    \mbox{\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}}(\textcolor{stringliteral}{"%y: can be converted to a string: '%s'\(\backslash\)n"}, n, \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}}(n));
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a7167b9d2407c8a6448f53e3ebc1670a1}\label{class_qore_1_1zzz8datezzz9_a7167b9d2407c8a6448f53e3ebc1670a1}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!type\+Code@{type\+Code}}
\index{type\+Code@{type\+Code}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{type\+Code()}{typeCode()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::type\+Code (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__type__code__constants_ga230aa338eb63ada8096e318095f8052c}{Qore\+::\+N\+T\+\_\+\+D\+A\+TE}}. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__type__code__constants_ga230aa338eb63ada8096e318095f8052c}{Qore\+::\+N\+T\+\_\+\+D\+A\+TE}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
switch (d.typeCode()) \{
    case NT\_DATE:
        \mbox{\hyperlink{group__string__functions_ga32070517a9f8a70a32ef48f83a6f128e}{printf}}(\textcolor{stringliteral}{"%y: is a date\(\backslash\)n"}, d);
        \textcolor{keywordflow}{break};
\}
\end{DoxyCode}
 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a798148fc6daeaf36a5413d731cab40e6}\label{class_qore_1_1zzz8datezzz9_a798148fc6daeaf36a5413d731cab40e6}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!val@{val}}
\index{val@{val}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{val()}{val()}}
{\footnotesize\ttfamily bool Qore\+::zzz8datezzz9\+::val (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if the date value is all zeros, \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if not. 

\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}} if the date value is all zeros, \mbox{\hyperlink{group__boolean__constants_ga3ba2df91713a6249449347131ea526c3}{True}} if not
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
bool b = d.val();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxySeeAlso}{See also}

\begin{DoxyItemize}
\item \mbox{\hyperlink{parse_directives_perl-bool-eval}{\%perl-\/bool-\/eval}}
\item \mbox{\hyperlink{parse_directives_strict-bool-eval}{\%strict-\/bool-\/eval}} 
\end{DoxyItemize}
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_ab52a41f7b16ad2b9115dd1ae05e0b21c}\label{class_qore_1_1zzz8datezzz9_ab52a41f7b16ad2b9115dd1ae05e0b21c}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!years@{years}}
\index{years@{years}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{years()}{years()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_ga2de8717e92c5f97ccc6511f6062d6502}{int}} Qore\+::zzz8datezzz9\+::years (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns an integer corresponding to the literal year value in the date (does not calculate a duration) 

\begin{DoxyReturn}{Returns}
an integer corresponding to the literal year value in the date (does not calculate a duration)
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
int n = d.years();
\end{DoxyCode}

\end{DoxyParagraph}
\begin{DoxyNote}{Note}
equivalent to \mbox{\hyperlink{group__date__and__time__functions_ga730632dedaa1b9cef875a5a12861f1d1}{get\+\_\+years(date)}} 
\end{DoxyNote}
\mbox{\Hypertarget{class_qore_1_1zzz8datezzz9_a4a7478124248ca3f481e52598244e2ae}\label{class_qore_1_1zzz8datezzz9_a4a7478124248ca3f481e52598244e2ae}} 
\index{Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}!zone@{zone}}
\index{zone@{zone}!Qore\+::zzz8datezzz9@{Qore\+::zzz8datezzz9}}
\subsubsection{\texorpdfstring{zone()}{zone()}}
{\footnotesize\ttfamily \+\_\+\+\_\+7\+\_\+ \mbox{\hyperlink{class_qore_1_1_time_zone}{Time\+Zone}} Qore\+::zzz8datezzz9\+::zone (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns a \mbox{\hyperlink{class_qore_1_1_time_zone}{Qore\+::\+Time\+Zone}} object for the time zone of the date/time value; returns \mbox{\hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+NG}} for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}. 

\begin{DoxyReturn}{Returns}
a \mbox{\hyperlink{class_qore_1_1_time_zone}{Qore\+::\+Time\+Zone}} object for the time zone of the date/time value; returns \mbox{\hyperlink{basic_data_types_nothing}{N\+O\+T\+H\+I\+NG}} for \mbox{\hyperlink{basic_data_types_relative_dates}{relative date/time values}}
\end{DoxyReturn}
\begin{DoxyParagraph}{Code Flags\+:}
\mbox{\hyperlink{code_flags_CONSTANT}{C\+O\+N\+S\+T\+A\+NT}}
\end{DoxyParagraph}
\begin{DoxyParagraph}{Example\+:}

\begin{DoxyCode}
*TimeZone zone = d.zone();
\end{DoxyCode}
 
\end{DoxyParagraph}
