|
|
ok this is a fun script and its good for if u forget what day of the week is is because it will tell u what day it is just drop into a prim name the prim what u like put this script in and touch it thats easy then u know what day of the week it is u can mod it to ftill your time zone its best if u know what your time zone is :) have fun with this script.......
// gives the day of the week
// Miley Shoreman
list weekdays = ["Thursday", "Friday", "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday"];
integer offset = -4; // offset from UTC just put in your time zone
default {
state_entry() {
//
}
touch_start(integer total_number) {
integer hours = llGetUnixTime()/3600;
integer days = (hours + offset)/24;// hrs. in a day
integer day_of_week = days%7;
llSay(0, "Today is " + llList2String(weekdays, day_of_week));// u can set to llwhispers if u like or llshout
}
}
|