User manual
mikroC PRO for dsPIC
MikroElektronika
739
Time_epochToDate
Prototype
void Time_epochToDate(long e, TimeStruct *ts);
Description Converts the UNIX time to time and date.
Parameters
- e: UNIX time (seconds since UNIX epoch)
- ts: time and date structure for storing conversion output
Returns Nothing.
Requires Nothing.
Example
#include “__Time.h”
...
TimeStruct ts2;
long epoch ;
...
//what date is epoch 1234567890 ?
epoch = 1234567890 ;
Time_epochToDate(epoch, &ts2) ;
Notes None.