NAME

datetime - current date and time

SYNOPSIS

#include <basic/string.h>

struct string dateS()

struct string timeS()

double timer()

DESCRIPTION

These functions obtain the current value of the systemís clock using time(2).  Localtime (see ctime(3)) is used to correct for the local time zone and Daylight Savings Time, if necessary. 

DateS returns a string of the form mm-dd-yyyy where mm is the month, dd is the day and yyyy is the year.  All fields are numeric and padded with zeroes if necessary.  This function implements the BASIC DATE$ variable. 

TimeS returns a string of the form hh-mm-ss where hh is the hour (on a 24-hour clock), mm is the minute and ss is the second.  All fields are numeric and padded with zeroes if necessary.  This function implements the BASIC TIME$ variable. 

Timer returns a double precision value which represents the number of whole seconds since midnight.  This function implements the BASIC TIMER function. 

SEE ALSO

string(inc)
date$(vrbl), timer(func), time$(vrbl)
time(2), ctime(3) in the UNIX Programmerís Manual

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber