Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Timestamp Weekday_from__Y_M_D__format  

Weekday_from__Y_M_D__format

Weekday_from__Y_M_D__format

Category: Timestamp
By : Void Singer
Created: 2010-02-01 Edited: 2010-02-01
Worlds: Second Life

the Zip file

Download all files for Weekday_from__Y_M_D__format
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Weekday_from__Y_M_D__format_1.lsl
1 /*//-- Note:
2 Accurate from 1901 to 2099 (no limiting code)
3
4 This version could be improved.
5 //*/
6
7 string uStamp2WeekdayStr( integer vIntYear, integer vIntMonth, integer vIntDay ){
8 return llList2String( ["Friday", "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday"],
9 (vIntYear + (vIntYear >> 2) - ((vIntMonth < 3) & !(vIntYear & 3)) + vIntDay
10 + (integer)llGetSubString( "_033614625035", vIntMonth, vIntMonth )) % 7 );
11 }
12 /*//-- Anti-License Text --//*/
13 /*// Contributed Freely to the Public Domain without limitation. //*/
14 /*// 2009 (CC0) [ http://creativecommons.org/publicdomain/zero/1.0 ] //*/
15 /*// Void Singer [ https://wiki.secondlife.com/wiki/User:Void_Singer ] //*/
16 /*//--

Back to the Best Free Tools in Second Life and OpenSim.