[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  TDAY

  .  Summary

  tday(int <timeval>);

  .  Description

  These functions all extract time information from <timeval>, which
  is a date and/or time of day. If <timeval> represents a date, it is
  the number of seconds from Jan 1, 1970 to that date. If <timeval>
  represents a time of day, it is the number of seconds from midnight
  to that time. If it is both, the two above values are simply added
  together.  Among others, the curtime and filetime functions return
  time/date information in this format.

  tday returns an integer value from 1 to 31 representing the day por-
  tion of the date stored in <timeval>.

  .  Return Value

  An integer value as described above.

  .  Example

  int t;
  t = curtime();
  printsc("This is month number ");
  printn(tmonth(t));
  printsc(" in the year ");
  printn(tyear(t));
  prints(".");

See Also: curtime filetime thour tmin tmonth tsec tyear
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson