Re: Date and Time Analyzer
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 29408
interpreted = N
texte = > I wanted a quick way of telling what the date and time either in days/date> or time/secs. and I wanted to do it with as little effort as possible. So I> wrote this bit o webdna. You can input your date or days and it will convert> it to the opposite of what you input. You can input your your time or> seconds and it will convert it to the opposite of what you input. You can> do both, but you have to delimit it with a comma. It is limited in the fact> that if you try to check a date prior to 864000(07/22/0236) it will think> you are trying to do time and not a date.I posted an include that transforms any date and time into the number ofseconds since January 1st, 1970 at 0:00 GMT (the universal standard forcoding time).[math show=f]unitime=[mathtime]({[date]}-{1/1/1970})*86400[/math]+[mathtime]{[time]}+{7:0:0}[/math][/math]This works for Arizona, because Arizona is 7 hours after GMT. You will haveto adapt this to your system.Or wait for SMS to just give us the command.Add this as an include in your Globals folder, call it once in a while andit should do the job nicely.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
> I wanted a quick way of telling what the date and time either in days/date> or time/secs. and I wanted to do it with as little effort as possible. So I> wrote this bit o webdna. You can input your date or days and it will convert> it to the opposite of what you input. You can input your your time or> seconds and it will convert it to the opposite of what you input. You can> do both, but you have to delimit it with a comma. It is limited in the fact> that if you try to check a date prior to 864000(07/22/0236) it will think> you are trying to do time and not a date.I posted an include that transforms any date and time into the number ofseconds since January 1st, 1970 at 0:00 GMT (the universal standard forcoding time).[math show=f]unitime=[mathtime]({[date]}-{1/1/1970})*86400[/math]+[mathtime]{[time]}+{7:0:0}[/math][/math]This works for Arizona, because Arizona is 7 hours after GMT. You will haveto adapt this to your system.Or wait for SMS to just give us the command.Add this as an include in your Globals folder, call it once in a while andit should do the job nicely.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Nicolas Verhaeghe
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Word-And searches (2000)
WebCat b13 CGI -shownext- (1997)
Webcat/Webmerchant part II (1998)
Fw: Linux w/ apache (2000)
Just another thing regarding my weird ShoppingCarts (2003)
Auto SKU's (2000)
Feature: TCPconnect via SSL (1999)
Include Troubles (1998)
Authenticate (1997)
nested context (1998)
Running _every_ page through WebCat ? (1997)
serial number dishing (1997)
SSL, WebSTAR, WebCatalog (1998)
WebCatalog for guestbook ? (1997)
Help name our technology! (1997)
How far do [showif]s go? (1997)
Quickie question on the email templates (1997)
Running 2 two WebCatalog.acgi's (1996)
Document Contains No Data! (1997)
Security Tip (1996)