Date Commmands

BlitzMax Forums/BlitzMax Programming/Date Commmands

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sub_Zero

The only thing I am missing here is a date timestamp (like in UNIX timestamp), wich is a integer% value measured in number of seconds since "1970-01-01 00:00:00".


Hmmm, would that not be very similar to my DayCount function/method for the date yes? Only it would be a count of seconds as you say from mid-night 1-1-1970 rather than 1-1-0001?


u2o

DateAdd (interval, number, date) [As in VB]


Not sure I quite follow exactly what that's for or rather how it works. What do the values interval & number represent? I assume that date is purely the date you want to work from? But if so in what format is that I guess just DD, MM and YYYY would be good?


Beaker

I'd find this useful. Any plans to add some unix time stuff?


To be honest when I started this I did consider briefly whether or not I'd cover time related functions and my thoughts at the time were that I could not really see the need, but did not rule it out completely. That said I think initially I'd rather keep concentrating on the date related functions and possibly revisit the time related stuff afterwards. However, please feel free to post what you have in mind time wise - particularily as I have to admit to knowing nothing about the UNIX stuff for dates or time related functions.

Thanks for the feedback - please keep it coming, I want this to be something of use to others as well as for myself so any commments are appreciated. :)