Amiga Developer Site by i n n o i d e a | MorphOS | Amiga Developers | Compilers | Documents | Dev-HardFile v1.11 for UAE / real Amiga - readme - shot) | Unique/All Visitors: 77257/570053
Search manual for function in the   
GeekGadgets/time
NAME 

time - get time in seconds

SYNOPSIS 

#include <time.h> 


time_t time(time_t *t);

DESCRIPTION 

time returns the time since the Epoch
(00:00:00 UTC, January 1, 1970), measured in seconds.

If
t 
is non-NULL,
the return value is also stored in the memory pointed to by
t.

RETURN VALUE 

On success, the value of time in seconds since the Epoch is returned.
On error, ((time_t)-1) is returned, and errno is set
appropriately.

ERRORS 

EFAULT 
t 
points outside your accessible address space.

NOTES 

POSIX.1 defines
seconds since the Epoch 
as a value to be interpreted as the number of seconds between a
specified time and the Epoch, according to a formula for conversion
from UTC equivalent to conversion on the na´ve basis that leap
seconds are ignored and all years divisible by 4 are leap years.  This
value is not the same as the actual number of seconds between the time
and the Epoch, because of leap seconds and because clocks are not
required to be synchronised to a standard reference.  The intention is
that the interpretation of seconds since the Epoch values be
consistent; see POSIX.1 Annex B 2.2.2 for further rationale.

CONFORMING TO 

SVr4, SVID, POSIX, X/OPEN, BSD 4.3

Under BSD 4.3, this call is obsoleted by
gettimeofday(2).
POSIX does not specify any error conditions.

SEE ALSO 

ctime(3),
date(1),
ftime(3),
gettimeofday(2)


20040229095437 - LouiSe - for (GeekGadgets/time)
if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {
    printf ("leap year");
} else {
    printf ("no leap year");
}

Logo by Emeric/SH
GeekGadgets/time

Example #1 Download / View

Functions with "t":
talkd.h
tan
tanh
tcdrain
tcflow
tcflush
tcgetattr
tcgetpgrp
tcp
tcp.h
tcp_debug.h
tcp_debug_protos.h
tcp_fsm.h
tcp_input_protos.h
tcp_output_protos.h
tcp_seq.h
tcp_subr_protos.h
tcp_timer.h
tcp_timer_protos.h
tcp_usrreq_protos.h
tcp_var.h
tcpip.h
tcsendbreak
tcsetattr
tcsetpgrp
tdelete
telldir
telnet.h
tempnam
termios
termios.h
tfind
tftp.h
time
time.h
timeb.h
timed.h
timegm
timelocal
times
times.h
tmpfile
tmpnam
toascii
tolower
toupper
towctrans
towlower
towupper
tracecntl.h
trap.h
trunc
truncate
truncf
truncl
tsearch
tty.h
ttychars.h
ttycom.h
ttydefaults.h
ttydev.h
ttyent.h
ttyname
twalk
typedef
types.h
tzfile.h
tzset

Last 15 uploaded Examples:

20071229151342 AmiSSL/X509_STORE_CTX_cleanup
20070708011052 GeekGadgets/getlogin
20060705053954 AmigaOS/OpenWorkbenchObjectA
20050801035639 SDL/SDL_Surface
20050727092732 BlitzBasic/LSL
20050718102843 SDL/SDL_WarpMouse
20050718072844 GeekGadgets/fread
20050714051528 SDL/SDL_ActiveEvent
20050714051514 SDL/SDL_ActiveEvent
20050701171401 GeekGadgets/errno
20050701171347 GeekGadgets/errno
20050627101951 SDL/SDL_FreeSurface
20050623152729 GeekGadgets/fork
20050619153102 GeekGadgets/tcdrain
20050615182849 AmigaOS/OpenScreen

Last 25 posts:

20050613235812 SDL/SDL_SetGammaRamp
20050526065000 AmiTCP/unistd.h
20050413041558 AmiSSL/X509_STORE_set_default_paths
20050409155750 AmigaDOS/Status
20050129230614 MUI/Calendar.mcc
20050128185620 GeekGadgets/hstrerror
20041126154558 BlitzBasic/LoadBank
20041123170704 GeekGadgets/gcvt
20041105222909 AmigaOS/CheckSignal
20040712190839 SDL/SDL_SetVideoMode
20040627090529 SDL/SDL_Init
20040519133228 GeekGadgets/fork
20040407124555 AmigaOS/AllocMem
20040403101120 GeekGadgets/inet_ntoa
20040327172814 GeekGadgets/random
20040327172714 GeekGadgets/srandom
20040313211937 BlitzBasic/ANALYZEDISK
20040303135237 GeekGadgets/mktemp
20040301131355 GeekGadgets/realpath
20040301123615 GeekGadgets/gcvt
20040301114000 GeekGadgets/htonl
20040301100209 GeekGadgets/realpath
20040229095437 GeekGadgets/time
20040211132618 GeekGadgets/getpid
20040209102818 AmigaOS/OpenWindow




Amiga.sf
AMIGIFT

Locations of visitors to this page

Page took 0.597377 seconds to load.