Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>thour</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  THOUR

  .  Summary

  thour(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.

  thour returns an integer value from 0 to 23 representing the hour
  portion of the time 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 tday tmin tmonth tsec tyear

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson