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 of seconds since January 1st, 1970 at 0:00 GMT (the universal standard for coding time).[math show=f]unitime=[math time]({[date]}-{1/1/1970})*86400[/math]+[math time]{[time]}+{7:0:0}[/math][/math]This works for Arizona, because Arizona is 7 hours after GMT. You will have to 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 and it 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:

    
  1. Re: Date and Time Analyzer (Nicolas Verhaeghe 2000)
  2. Date and Time Analyzer (Bob Minor 2000)
> 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 of seconds since January 1st, 1970 at 0:00 GMT (the universal standard for coding time).[math show=f]unitime=[math time]({[date]}-{1/1/1970})*86400[/math]+[math time]{[time]}+{7:0:0}[/math][/math]This works for Arizona, because Arizona is 7 hours after GMT. You will have to 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 and it 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:

RE: Questions To Answer (1997) RE: [REPLACE] inside [FOUNDITEMS] (1998) Setting up the server (1997) Smith Micro Site (2000) Hard Questions ? (1997) Cookies not setting on IE (2002) Date Time Oddness (1999) [WebDNA] Permissions Error (2014) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Email Attachments (1998) I try hard to think positively (1998) CERT Advisory on malicious scripts (2000) Ok here is a question? (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Merging databases (1997) Further tests with the infamous shipCost (1997) Likelihood of a duplicate (2005) FM and Webcat together? (1998) Tracking inbound links for discounts (1997) Force a search at the default.tmpl page? (1997)