\hypertarget{group__Evil__Time__Group}{}\doxysection{Time.\+h functions}
\label{group__Evil__Time__Group}\index{Time.h functions@{Time.h functions}}


This header provides functions ported from Unix in time.\+h.  


\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Evil__Time__Group_ga32e7ff1da5763e68f44097cb23826415}\label{group__Evil__Time__Group_ga32e7ff1da5763e68f44097cb23826415}} 
\#define {\bfseries HAVE\+\_\+\+GETTIMEOFDAY}~1
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{group__Evil__Time__Group_ga5aadf24587fed0a1f7fc4311aeeff942}{evil\+\_\+gettimeofday}} (struct timeval $\ast$tv, struct timezone $\ast$tz)
\begin{DoxyCompactList}\small\item\em Get time and timezone. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{group__Evil__Time__Group_gab33323a8e5a42adb071e6a554caaeaf6}{strptime}} (const char $\ast$buf, const char $\ast$fmt, struct tm $\ast$tm)
\begin{DoxyCompactList}\small\item\em Convert a string representation of time to a time tm structure . \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This header provides functions ported from Unix in time.\+h. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Evil__Time__Group_ga5aadf24587fed0a1f7fc4311aeeff942}\label{group__Evil__Time__Group_ga5aadf24587fed0a1f7fc4311aeeff942}} 
\index{Time.h functions@{Time.h functions}!evil\_gettimeofday@{evil\_gettimeofday}}
\index{evil\_gettimeofday@{evil\_gettimeofday}!Time.h functions@{Time.h functions}}
\doxysubsubsection{\texorpdfstring{evil\_gettimeofday()}{evil\_gettimeofday()}}
{\footnotesize\ttfamily int evil\+\_\+gettimeofday (\begin{DoxyParamCaption}\item[{struct timeval $\ast$}]{tv,  }\item[{struct timezone $\ast$}]{tz }\end{DoxyParamCaption})}



Get time and timezone. 


\begin{DoxyParams}{Parameters}
{\em tv} & A pointer that contains two sockets. \\
\hline
{\em tz} & A pointer that contains two sockets. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, -\/1 otherwise.
\end{DoxyReturn}
This function gets the time and timezone. {\ttfamily tv} and {\ttfamily tz} can be {\ttfamily NULL}. It calls Get\+System\+Time\+Precise\+As\+File\+Time() on Windows 8or above if \+\_\+\+WIN32\+\_\+\+WINNT is correctly defined. It returns 0 on success, -\/1 otherwise.

\begin{DoxySince}{Since}
1.\+25 
\end{DoxySince}
\mbox{\Hypertarget{group__Evil__Time__Group_gab33323a8e5a42adb071e6a554caaeaf6}\label{group__Evil__Time__Group_gab33323a8e5a42adb071e6a554caaeaf6}} 
\index{Time.h functions@{Time.h functions}!strptime@{strptime}}
\index{strptime@{strptime}!Time.h functions@{Time.h functions}}
\doxysubsubsection{\texorpdfstring{strptime()}{strptime()}}
{\footnotesize\ttfamily char$\ast$ strptime (\begin{DoxyParamCaption}\item[{const char $\ast$}]{buf,  }\item[{const char $\ast$}]{fmt,  }\item[{struct tm $\ast$}]{tm }\end{DoxyParamCaption})}



Convert a string representation of time to a time tm structure . 


\begin{DoxyParams}{Parameters}
{\em buf} & The string to convert. \\
\hline
{\em fmt} & The representation of time. \\
\hline
{\em tm} & The time tm structure. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The first character not processed in this function call.
\end{DoxyReturn}
This function converts the string {\ttfamily s} to a time tm structure and fill the buffer {\ttfamily tm}. The format of the time is specified by {\ttfamily format}. On success, this function returns the first character not processed in this function call, {\ttfamily NULL} otherwise.

Conformity\+: Non applicable.

Supported OS\+: Windows XP. 

Referenced by eina\+\_\+value\+\_\+util\+\_\+time\+\_\+string\+\_\+new().

