MathGroup Archive 2010

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

Search the Archive

Re: Date & Time format..

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107591] Re: Date & Time format..
  • From: "Alexey Popkov" <lehin.p at gmail.com>
  • Date: Fri, 19 Feb 2010 03:32:26 -0500 (EST)
  • References: <hlglh3$l4v$1@smc.vnet.net>

Hello,
The following should work but does not:

DateList[{"11/4/2009 3:24:06.303 PM", {"Day", "Month", "Year", "Hour12",
"Minute", "SecondExact", "AMPM"}}]

It looks like a bug.



"graser" <graser at gmail.com>  news:hlglh3$l4v$1 at smc.vnet.net...
> Hi
>
> I have a list of date and time string such as..
>
> AA = {"Start", "Time", "11/4/2009", "3:24:06.505", "PM"}
>
> I want to read "11/4/2009", "3:24:06.505", "PM" as date format..
>
> so I did
>
> DateList["11/4/2009 3:24:06.505 PM"] and actually it gives me as
>
> {2009, 11, 4, 15, 24, 6.505}
>
> But there is also waring message like..
>
> **
> DateList::ambig: Warning: the interpretation of the string 11/4/2009
> 3:24:06.505 PM as a date is ambiguous. >>
> ***
>
> So I thought the problem was "PM"
>
> I tried it again with
>
> DateList[{"11/4/2009 3:24:06.505 PM", {"Day", "Month", "Year",
> "Hour", "Minute", "Second", "AMPM"}}]
>
> But it didn't work...
>
> Do you have any idea how to handle AMPM part?
>
> Thanks
>
> 




  • Prev by Date: Re: Strange behaviour of Plot
  • Next by Date: Convexity and graphical display of feasible set
  • Previous by thread: Re: Date & Time format..
  • Next by thread: Re: Date & Time format..