ColdC: Function/Method Reference: localtime()


LIST localtime([INTEGER time])

This function returns an 11 element list representing the specified by the argument time. If no argument is given, it will use the current time instead. The elements are taken directly from struct tm in C. Elements are broken down as follows:

  1. INTEGER time (same as returned by the function time())
  2. INTEGER seconds (0-59)
  3. INTEGER minutes (0-59)
  4. INTEGER hours (0-23))
  5. INTEGER day of month (0-31)
  6. INTEGER month in year (0-11)
  7. INTEGER year
  8. INTEGER week day (0-6)
  9. INTEGER year day (0-354*)
  10. INTEGER is daylight savings in effect?
  11. STRING time zone name

*
On leap years this is 0-355.


Last Modified on 23 Mar 1996
Copyright © 1995, 1996, Brandon Gillespie