ctime(), localtime(), and time(0)

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 11/12/97


Ok, i think i know the basics of what the functions
asctime() localtime() time(0) and ctime() do,
but what thing i still don't understand.

ok, given  given
time_t ct;
char * tmstr;

AND

ct = time(0);

what is the difference between

tmstr = asctime(localtime(&ct));
and
tmstr = ctime(&ct);

from my observations, i see no differences aside from
one less function call (possibly).

Any ideas?  And if there IS one less function call and nothing else,
why doesn't Circle make this change in the code, to save a little
bit of CPU time (i guess).

Akuma the Raging Coder
  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST