Looks like that won't work anyway since using the string as a page name is
not valid as I just found out...

So I might as well just use a unix time stamp.

On Sat, Sep 19, 2009 at 2:07 PM, Kevin <[email protected]> wrote:

>
> I am working on something that will save a page using the current
> timestamp in readable format.
>
> The format would be expressed as: YYYY-MM-DD_HH:MM:SS
>
> Using the time function If I use: %Y-%m-%d_%H:%M:%S
>
> However, if I use that I get unexpected output...
>
> [(time {now} '%Y-%m-%d_%H:%M:%S')]
>
> I get:  1253393200
>
> If I change the underscore to a dash or a space it works just fine...
>
> [(time {now} '%Y-%m-%d %H:%M:%S')]
> I get what I expect...  2009-09-19 13:45:44
>
> [(time {now} '%Y-%m-%d-%H:%M:%S')]
> I get:  2009-09-19-13:45:44
>
> Seems that the underscore messes up the format string...
>
> Not sure what the issue is as underscore can be used in the PHP
> strftime function.  I took a look at the BOLTFtime function but really
> didn't see anything stand out.
>
> >
>


-- 
Kevin Reed
TNET Services, Inc.
[email protected]
Mesa AZ Weather Info - http://www.tnetweather.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to