how to get the date

Hi,

how do can I get the current date and time (programmatic) ?

Benzy Gabay

Check documentation for time();

“Benzy Gabay” <bgabay@everbee.com> wrote in message
news:9nkeaq$isu$1@inn.qnx.com

Hi,

how do can I get the current date and time (programmatic) ?

Benzy Gabay

Benzy Gabay <bgabay@everbee.com> wrote:

Hi,

how do can I get the current date and time (programmatic) ?

time() is the basic. It gives you the number of seconds since
Jan 1, 1970, midnight UTC.

Mostly, that isn’t what you want. So, you take that value and
pass it to one of the other functions that convert it to something
more useful: localtime(), gmtime(), asctime(), strftime(), etc.

Check the docs for details, depending on exactly what you want.

-David

QNX Training Services
dagibbs@qnx.com