Re: Date AND time
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 40298
interpreted = N
texte = Thank you for the tips.:)On 11/25/01 10:50 PM, Bob Minor mashed the following keys :> On 11/26/01 12:28 AM, Aaron Lynch
wrote:> >> I have a feeling that I will have to do a replace using getchars or>> something, but even still, how can I end up with one field that has epoch>> time or something that I can then search on and extract using [date] later?> I convert the date to seconds since 00/00/00 and time as well. Then I can> search it as I please. I store it in 2 fields so that I can search one or> both fields. I also combine the date and time and store that as well.> > date:[math]{[date]}[/math]> time:[math]{[time]}[/math]> datetime:[math]{[date]}[/math][format 5s][math]{[time]}[/math][/format]> > This produces> date:731180> time:2592> datetime:7311802592> > Then you can reformat when you take it out.> > date:[format days_to_date %Y-%m-%d][yourdatefield][/format]> time:[format seconds_to_time %H:%M:%S][yourtimefield][/format]> > You also know that the first six digits of datetime are the date at least> until 269,000 days(736 years) from today and that is the last 5 digits are> the time.>-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Thank you for the tips.:)On 11/25/01 10:50 PM, Bob Minor mashed the following keys :> On 11/26/01 12:28 AM, Aaron Lynch wrote:> >> I have a feeling that I will have to do a replace using getchars or>> something, but even still, how can I end up with one field that has epoch>> time or something that I can then search on and extract using [date] later?> I convert the date to seconds since 00/00/00 and time as well. Then I can> search it as I please. I store it in 2 fields so that I can search one or> both fields. I also combine the date and time and store that as well.> > date:[math]{[date]}[/math]> time:[math]{[time]}[/math]> datetime:[math]{[date]}[/math][format 5s][math]{[time]}[/math][/format]> > This produces> date:731180> time:2592> datetime:7311802592> > Then you can reformat when you take it out.> > date:[format days_to_date %Y-%m-%d][yourdatefield][/format]> time:[format seconds_to_time %H:%M:%S][yourtimefield][/format]> > You also know that the first six digits of datetime are the date at least> until 269,000 days(736 years) from today and that is the last 5 digits are> the time.>-------------------------------------------------------------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 Web Archive of this list is at: http://search.smithmicro.com/
Aaron Lynch
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:
PCS Customer submissions ? (1997)
[sendmail] problem getting silly now =\ (2000)
Re:trouble (1997)
about this server and links to who (1997)
slightly OT: advertising schemes (2004)
WebCatalog usage (1997)
two unique banners on one page (1997)
code below an [authenticate] gets evaluated? (2000)
Extended [ConvertChars] (1997)
Re:Realtime Transaction Processing (1999)
[WebDNA] WebDNA DE purchase (2008)
[WebDNA] Moving sites to a HostGator dedicated server (2008)
READFILE command? (1998)
Fwd: Re(2): Password and Allow commands (1998)
error -108 (1997)
Authorize.net, SIM, tcpconnect and applescript (2003)
WebCatalog f2 Installation (1997)
WebCat2 beta 11 - new prefs ... (1997)
suffix mapping, use of cache, etc. (1997)
Digest for 4/18/97 (1997)