(C) 1998 AROS - The Amiga Research OS


NAME
#include <utility/date.h>
#include <proto/utility.h>

void Amiga2Date (seconds , result)

LOCATION
In UtilityBase at offset 20

SYNOPSIS
ULONG seconds
struct ClockData * result

FUNCTION
Convert the time value given as the number of seconds since the 1st of January 1978 (00:00:00 1.1.78), to a more useful values, which is easier for most people to understand. These values will be stored in the ClockData structure whose address is passed as an argument.

INPUTS
seconds
Number of seconds since 1.1.78 00:00:00
result
The ClockData structure to store the information in.

RESULT
The ClockData structure will contain the converted time values.

EXAMPLE

SEE ALSO

NOTES

BUGS

INTERNALS
Some information about some constants I use:

731 = 365 + 366, the number of days between 1.1.1978 and 1.1.1976. Using 1976 makes working out leap years simpler. 1461 = The number of days in four years including 1 leap year. (eg 365*3 + 366) 86400 = The number of seconds in one day.

I used these as constants so that they don't have to be computed on the fly, or read from variables.

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.08.1997 digulla
Polish.

Renamed utility_intern.h to intern.h.

03.02.1997 ldp
Changed <proto/*_protos.h> to <proto/*.h>
02.02.1997 iaint
Some bug fixes, math functions and native Amiga support
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
24.10.1996 aros
Use proper Amiga datatypes (eg: ULONG not unsigned long)
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
31.08.1996 aros
Merged in/modified for FreeBSD.