Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <TIME.H>
Link against: estlib.lib

gettimeofday(struct timeval *,struct timezone *)

IMPORT_C int gettimeofday(struct timeval *tp, struct timezone *tzp);

Description

Intended Usage: The gettimeofday function obtains the current UTC time, which is expressed as seconds and microseconds since 00:00:00 Coordinated Universal TimeTime (UTC), January 1, 1970, and stores it in a timeval structure. Please note that tz_minuteswest includes daytime saving. The struct member tz_dsttime is no longer supported by Symbian OS and therefore set to Zero.

Parameters

struct timevaltimeval *tp

Struct with two members of type long (tv_sec, tv_usec)

struct timezonetimezone *tzp

Struct with two members of type integer (tz_minuteswest, tz_dsttime)

Return value

int