MathGroup Archive 2008

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

Search the Archive

Re: Difficulty in importing dates and times with functions like

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94393] Re: Difficulty in importing dates and times with functions like
  • From: Raffy <raffy at mac.com>
  • Date: Thu, 11 Dec 2008 07:28:27 -0500 (EST)
  • References: <ghqk47$18l$1@smc.vnet.net>

abstime[t_String] := AbsoluteTime[ToExpression[StringSplit[t, "-" | "
" | ".", 6]]];

Do[r1 = abstime["2008-12-01 12.34.56.454"], {10000}] // Timing
==> 0.2 sec

Do[r2 = AbsoluteTime[{"2008-12-01 12.34.56.454", {"Year", "Month",
"Day", "Hour", "Minute", "Second"}}], {10000}] // Timing ==> 27 sec

Floor[r1] == r2  ==> True


  • Prev by Date: Re: Exponent function question
  • Next by Date: Re: Exponent function question
  • Previous by thread: Re: Difficulty in importing dates and times with functions
  • Next by thread: Re: Difficulty in importing dates and times with functions like