Unix2StampLst

From Second Life Wiki
Revision as of 14:32, 12 October 2010 by Void Singer (talk | contribs) (relocation from user page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

User-Defined Function: list uUnix2StampLst( integer vIntDat );

Returns a list that is a Unix time code converted to the format [Y, M, D, h, m, s]

  • vIntDat: source Unix time code to convert


Code:

  • LSO: 541 bytes
  • MONO: 1024 bytes

<lsl>list uUnix2StampLst( integer vIntDat ){

   if (vIntDat / 2145916800){
vIntDat = 2145916800 * (1

Caveats

  • Time codes before the year 1902 or past the end of 2037 are capped to the first second of 1902 and 2038 respectively