Unix2WeekdayStr

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

Summary

User-Defined Function: string uUnix2WeekdayStr( integer vIntDat );

Returns a string that is the day of the week for the given date.

  • vIntDat: source Unix time stamp


Code:

  • LSO: bytes
  • MONO: bytes

<lsl>string uUnix2WeekdayStr( integer vIntDat ){

   return llList2String( ["Thursday", "Friday", "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday"],
                          vIntDate % 604800 / 86400  + (vIntDate >> 31) );

} /*//-- Anti-License Text --//*/ /*// Contributed Freely to the Public Domain without limitation. //*/ /*// 2009 (CC0) [ http://creativecommons.org/publicdomain/zero/1.0 ] //*/ /*// Void Singer [ https://wiki.secondlife.com/wiki/User:Void_Singer ] //*/

/*//-- --//*/</lsl>