Joe_D_Rozario_4
Mar 27, 2008Nimbostratus
date format conversion
I need some help with date-time conversion. Our servers are setting cookies with local time-stamp i.e., Thu, 09 Apr 2008 17:06:48 PDT (or PST). I am trying to find a way to convert this time-stamp to GMT i.e., Thu, 10 Apr 2008 00:06:48 PDT.
I have tried code like this:
set cookie_expires [HTTP::cookie "Expires"]
set x [clock scan $cookie_expires -format {%a, %d %b %Y %T %Z}]]
set y [clock format $x -format {%a, %d %b %Y %T %Z} -timezone :UTC]
The errors are:
[wrong args] on [clock scan]
[invalid switch] with [clock format]
Thank for your help.