Re: adding time

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50631
interpreted = N
texte = I do not understand what you mean.http://www.inkblotmedia.com/time.tplI use this: [Math time]{[time]}+{06:00:00}[/Math]and get22:21:24 + 6 hours = 04:21:24It seemed to roll over for me. Granted this will not change the date but it seems to add the time.----- Original Message ----- From: John Peacock To: WebDNA Talk Sent: Thursday, May 22, 2003 7:38 PM Subject: Re: adding time > Kalin Mintchev wrote: > > i just need to send out files that have the GMT time and have to summ 6 > > hours to the time the server has... > > And you should also be aware that just adding 6 hours to the time won't deal > when you are close to midnight. Check out the archives for my latest > MIMEHeaders.inc files, which shows the proper way to handle this. Basically it > breaks down to the following pseudocode: > > later = now + 6 > if later < now # wrapped around to next day > date = date + 1 > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: adding time (John Peacock 2003)
  2. Re: adding time (WebCat @ Inkblot Media 2003)
  3. Re: adding time (John Peacock 2003)
  4. Re: adding time (Kalin Mintchev 2003)
  5. Re: adding time (WebCat @ Inkblot Media 2003)
  6. Re: adding time (Kalin Mintchev 2003)
  7. Re: adding time (WebCat @ Inkblot Media 2003)
  8. adding time (Kalin Mintchev 2003)
  9. Re: Adding time above 24 hours (Matthew Bohne 2002)
  10. Re: Adding time above 24 hours (Donovan 2002)
  11. Re: Adding time above 24 hours (Matthew Bohne 2002)
  12. Re: Adding time above 24 hours (Donovan 2002)
  13. Adding time above 24 hours (Matthew Bohne 2002)
I do not understand what you mean.http://www.inkblotmedia.com/time.tplI use this: [Math time]{[time]}+{06:00:00}[/Math]and get22:21:24 + 6 hours = 04:21:24It seemed to roll over for me. Granted this will not change the date but it seems to add the time.----- Original Message ----- From: John Peacock To: WebDNA Talk Sent: Thursday, May 22, 2003 7:38 PM Subject: Re: adding time > Kalin Mintchev wrote: > > i just need to send out files that have the GMT time and have to summ 6 > > hours to the time the server has... > > And you should also be aware that just adding 6 hours to the time won't deal > when you are close to midnight. Check out the archives for my latest > MIMEHeaders.inc files, which shows the proper way to handle this. Basically it > breaks down to the following pseudocode: > > later = now + 6 > if later < now # wrapped around to next day > date = date + 1 > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ WebCat @ Inkblot Media

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:

pc (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Repeating Fields (1997) calculating tax rates, mail order solutions and version 2 (1997) Firesite and WebCat (1999) Unexpected comparison behavior change in 4.5.1 (2003) How To question on setting up downloads (1997) WebCat editing, SiteGuard & SiteEdit (1997) Help name our technology! (1997) Locking up with WebCatalog... (1997) Overriding text variables ... (2000) Hello??? (1997) [WebDNA] [OT] thanks. (2009) RE: Formulas.db + Users.db (1997) Shipping charges (1998) [WebDNA] WebDNA AJAX_Fileuploader (2013) RE: Ongoing group search problems ... (1997) self maintaining databases? (1998) [WebDNA] Putting '&search' into URL killing all search contexts on my sites (2010) 'RequiredField' Question (1998)