Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions | Variables
Sld_time

Functions

time_t sld_time_epoch_seconds ()
 Returns the time in seconds since the epoch (01/01/1970 @ 00:00:00 UTC) More...
 
char * sld_time_pretty_timestamp ()
 Returns a pretty timestamp in the format: Wed Apr 19 21:27:08 2017. More...
 

Variables

struct tm * timedata
 

Detailed Description

This module contains functions related to dates and times.

Function Documentation

time_t sld_time_epoch_seconds ( )

Returns the time in seconds since the epoch (01/01/1970 @ 00:00:00 UTC)

Returns
Time in seconds since the epoch (01/01/1970 @ 00:00:00 UTC)
printf("There have been %ld seconds since the epoch.\n", sld_time_epoch_seconds());
char* sld_time_pretty_timestamp ( )

Returns a pretty timestamp in the format: Wed Apr 19 21:27:08 2017.

Returns
A pretty timestamp in the format: Wed Apr 19 21:27:08 2017

Variable Documentation

struct tm* timedata

A time structure