www.delorie.com/djgpp/doc/libc/libc_821.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

time

Syntax

 
#include <time.h>

time_t time(time_t *t);

Description

If t is not NULL, the current time is stored in *t.

Return Value

The current time is returned.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

 
printf("Time is %d\n", time(0));


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004