\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 
EVIL\+\_\+\+API int \mbox{\hyperlink{group__Evil__Time__Group_gaa9fee12e4d62eb99b5fcb6e4145029e8}{evil\+\_\+gettimeofday}} (struct timeval $\ast$tv, struct timezone $\ast$tz)
\begin{DoxyCompactList}\small\item\em Get time and timezone. \end{DoxyCompactList}\item 
EVIL\+\_\+\+API char $\ast$ \mbox{\hyperlink{group__Evil__Time__Group_ga0ebf87f17b08be5b192003cef8699cd3}{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_gaa9fee12e4d62eb99b5fcb6e4145029e8}\label{group__Evil__Time__Group_gaa9fee12e4d62eb99b5fcb6e4145029e8}} 
\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 EVIL\+\_\+\+API 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_ga0ebf87f17b08be5b192003cef8699cd3}\label{group__Evil__Time__Group_ga0ebf87f17b08be5b192003cef8699cd3}} 
\index{Time.h functions@{Time.h functions}!strptime@{strptime}}
\index{strptime@{strptime}!Time.h functions@{Time.h functions}}
\doxysubsubsection{\texorpdfstring{strptime()}{strptime()}}
{\footnotesize\ttfamily EVIL\+\_\+\+API 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. 

References \mbox{\hyperlink{group__Evil__Time__Group_ga0ebf87f17b08be5b192003cef8699cd3}{strptime()}}.



Referenced by \mbox{\hyperlink{group__Eina__Value_gae9a68896e9c25312fcbedbd5c3061f43}{eina\+\_\+value\+\_\+util\+\_\+time\+\_\+string\+\_\+new()}}, and \mbox{\hyperlink{group__Evil__Time__Group_ga0ebf87f17b08be5b192003cef8699cd3}{strptime()}}.

