Unix2StampLst

From Second Life Wiki
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

<source lang="lsl2">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