MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug in DateString with TimeZone?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93594] Re: Bug in DateString with TimeZone?
  • From: "sjoerd.c.devries at gmail.com" <sjoerd.c.devries at gmail.com>
  • Date: Sun, 16 Nov 2008 07:05:38 -0500 (EST)
  • References: <gf3mf5$ekc$1@smc.vnet.net>

It seems to depend on which string format you choose. Definitely a
bug. You should send a bug report to the Wolfram support guys.

Cheers -- Sjoerd

On Nov 8, 11:34 am, Nacho <ncc1701... at gmail.com> wrote:
> Hello all.
>
> I'm trying to get the time in format HHMM in Timezone GMT and I'm
> having problems, TimeZone works weird.
>
> I don't know if it is a bug. My Timezone is GMT+1, and I get:
>
> In[25]:= DateString[{"Hour", "", "Minute"}]
> Out[25]= "2122"  (It's OK)
>
> In[26]:= DateString[TimeZone -> 0]
> Out[26]= "Fri 7 Nov 2008 20:22:17" (It's OK)
>
> In[27]:= DateString[{"Hour", "", "Minute"}, TimeZone -> 0]
> Out[27]= "2222" (Wrong! this is GMT+2)
>
> I solved my problem using:
>
> In[28]:= DateString[AbsoluteTime[TimeZone -> 0], {"Hour", "",
> "Minute"}]
> Out[28]= "2022"
>
> but I think there is a problem with TimeZone...
>
> Any hint?
>
> Thanks.



  • Prev by Date: Re: Basic programming
  • Next by Date: LatticeReduce
  • Previous by thread: Re: Bug in DateString with TimeZone?
  • Next by thread: Command line options