Difference between revisions of "Unix2StampLst"

From Second Life Wiki
Jump to navigation Jump to search
m (relocation from user page)
(No difference)

Revision as of 14:32, 12 October 2010

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