Finding the day of the week


Finding the day of the week

Date and Time functions are always tricky once you need to discover other information besides the year, month, day, hour, minute, and second. There are no methods to work with adding and subtracting days or finding out what the current timezone offset is. I started to work on my week day bar chart and ran into a problem with determining what day of the week it was. I found some code on the wiki but found that it didn’t compensate for daylight savings. I made my own version and posted the source. Plus there is a nice box waiting for anyone who wants to take a copy in my shop.

Woodbridge (87, 97) - Dec 29, 2007 (339 days ago) by Dedric Mauriac

Tags for this Snapshot

adding bar box chart code compensate copy current date day daylight dayoftheweeksome days determining discover finding found functions hour hrefhttps information made methods minute month nice offset posted problem ran savings secondlife shop source started subtracting time timezone tricky version waiting week wiki woodbridge work year

Leave a Comment

You're not logged in. If you want to post a comment, please log in.