Re: What date is it anyway?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57112
interpreted = N
texte = I've seen similar problems naming files using [date]. On rare occasions (like one in 100,000), always using the same code and never having a variable named "date", [writefile abc[date %Y%m%d]] will give me file names like: abc2004 abc200403 abcdate abc This is using WebDNA 5.0.0g on OSX. I don't have a solution, and it hasn't hit a particularly critical area - mostly this hits on my common code for logging page hits, and missing a hit or two a day isn't a big deal. It is disturbing, however. - brian On Mar 24, 2004, at 5:00 AM, Phil Ronchetti wrote: > I'm not using the date function inside an orderfile. The code looks > like this: > > [text]var_ymd=[date %y%m%d][/text] > [AppendFile file=backups/orders[var_ymd].txt][/AppendFile] > > Phil > >> At 12:35 PM +0000 3/24/04, Phil Ronchetti wrote: >>> Hi, >>> >>> I'm getting some really weird date function behaviour. I use the >>> date function to generate a filename such as ordersYYMMDD.txt (e.g. >>> orders040324.txt). This works fine almost all of the time but >>> occasionally the filename that is generated is incorrect. It >>> happened today, I was expecting orders040324.txt but got >>> orders031010.txt. I checked the date on the server and it was set >>> correctly. >> >> Are you creating this file within an [orderfile...] context? If so, >> then the date is the date of the order, not the system date. ~Joe >> -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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: What date is it anyway? ( Paul Willis 2004)
  2. Re: What date is it anyway? ( devaulw@onebox.com 2004)
  3. Re: What date is it anyway? ( Paul Willis 2004)
  4. Re: What date is it anyway? ( Phil Ronchetti 2004)
  5. Re: What date is it anyway? ( Brian Fries 2004)
  6. Re: What date is it anyway? ( Phil Ronchetti 2004)
  7. Re: What date is it anyway? ( Joe D'Andrea 2004)
  8. What date is it anyway? ( Phil Ronchetti 2004)
I've seen similar problems naming files using [date]. On rare occasions (like one in 100,000), always using the same code and never having a variable named "date", [writefile abc[date %Y%m%d]] will give me file names like: abc2004 abc200403 abcdate abc This is using WebDNA 5.0.0g on OSX. I don't have a solution, and it hasn't hit a particularly critical area - mostly this hits on my common code for logging page hits, and missing a hit or two a day isn't a big deal. It is disturbing, however. - brian On Mar 24, 2004, at 5:00 AM, Phil Ronchetti wrote: > I'm not using the date function inside an orderfile. The code looks > like this: > > [text]var_ymd=[date %y%m%d][/text] > [AppendFile file=backups/orders[var_ymd].txt][/AppendFile] > > Phil > >> At 12:35 PM +0000 3/24/04, Phil Ronchetti wrote: >>> Hi, >>> >>> I'm getting some really weird date function behaviour. I use the >>> date function to generate a filename such as ordersYYMMDD.txt (e.g. >>> orders040324.txt). This works fine almost all of the time but >>> occasionally the filename that is generated is incorrect. It >>> happened today, I was expecting orders040324.txt but got >>> orders031010.txt. I checked the date on the server and it was set >>> correctly. >> >> Are you creating this file within an [orderfile...] context? If so, >> then the date is the date of the order, not the system date. ~Joe >> -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/ Brian Fries

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:

searchable list archive (1997) formatting a number (1999) Subdomain mapping for SSL (2002) pdf files? (2001) SM: MySQL and Numbers (BUG) (2005) [WebDNA] [OT] Need to add second SSL host - what are my options? (2010) Bug? (1997) Math, Multiple Equasions and Show/Hide (1998) WebCat editing, SiteGuard & SiteEdit (1997) [WebDNA] To be or not to be friendly (URLs) (2011) Keep away (1997) Dubble Sku's in a Database (1999) WebTen and WebCat (1997) Unusual characters in the db ... (2002) Order not created error (1997) Sendmail error 17152 - Another Discovery! (2000) two unique banners on one page (1997) The IBC root beer has arrived! (1997) [WebDNA] timestamp conversion (2011) [referrer] tag (1997)