Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
timeconv.c File Reference
#include <linux/time.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define SECS_PER_HOUR   (60 * 60)
 
#define SECS_PER_DAY   (SECS_PER_HOUR * 24)
 

Functions

void time_to_tm (time_t totalsecs, int offset, struct tm *result)
 
 EXPORT_SYMBOL (time_to_tm)
 

Macro Definition Documentation

#define SECS_PER_DAY   (SECS_PER_HOUR * 24)

Definition at line 67 of file timeconv.c.

#define SECS_PER_HOUR   (60 * 60)

Definition at line 66 of file timeconv.c.

Function Documentation

EXPORT_SYMBOL ( time_to_tm  )
void time_to_tm ( time_t  totalsecs,
int  offset,
struct tm result 
)

time_to_tm - converts the calendar time to local broken-down time

the number of seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC). offset seconds adding to totalsecs.

Returns
pointer to struct tm variable to receive broken-down time

Definition at line 77 of file timeconv.c.