MathGroup Archive 2010

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

Search the Archive

Re: Date & Time format..

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107575] Re: [mg107555] Date & Time format..
  • From: Michael Stern <nycstern at gmail.com>
  • Date: Thu, 18 Feb 2010 05:15:05 -0500 (EST)
  • References: <201002171201.HAA21780@smc.vnet.net>

The ambiguity is with the date format, not the time.  Is "11/4/2009" 
intended to mean November 4, or April 11?

Michael



graser wrote:
> 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: problem with double integral
  • Next by Date: Re: manipulate plot
  • Previous by thread: Date & Time format..
  • Next by thread: Re: Date & Time format..