1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- mktime() is supposed to convert the time specification, given as local

time, into the number of seconds since January 1st, 1970, relative to
  UTC. This didn't really work up until now since the time value returned
  was given as local time.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14810 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-01-25 11:21:00 +00:00
parent d1aaa84bcc
commit 003faf7a24
4 changed files with 22 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: time_time.c,v 1.3 2005-01-24 10:25:46 obarthel Exp $
* $Id: time_time.c,v 1.4 2005-01-25 11:21:00 obarthel Exp $
*
* :ts=4
*
@ -52,7 +52,8 @@ time(time_t * tptr)
PROFILE_ON();
/* This converts the DateStamp contents into the number of
seconds elapsed since January 1st 1970. */
seconds elapsed since January 1st 1970. The time is
given as relative to UTC, not local time. */
result = __convert_datestamp_to_time(&ds);
if(tptr != NULL)