Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7839
| From | "Harvey P. Dale" <hpd1@nyu.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: split a number to Date format |
| Date | 2012-01-14 22:20 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jesv2v$cnt$1@smc.vnet.net> (permalink) |
| References | <201201140754.CAA01282@smc.vnet.net> |
Derek:
DateString[FromDigits/@Partition[IntegerDigits[111205020000],2]]
Best,
Harvey
-----Original Message-----
From: Derek Martin [mailto:cdmartin@me.com]
Sent: Saturday, January 14, 2012 2:54 AM
Subject: split a number to Date format
I have experimental data in spreadsheet format. The first column is a
time stamp in the format 111205020000.
If I could parse or split the number 111205020000 into
{11,12,05,02,00,00} and replace the first 11 with 2011, the Date
commands would work fine. I can do the replacing, but am having
difficulty seeing how to split the number into {11,12,05,02,00,00}.
DateString[{2011, 12, 05, 02, 00, 00}] gives "Mon 5 Dec 2011 02:00:00"
Any help to convert my number to the right Date format would be
appreciated. I am using Mathematica 8.
Thanks in Advance
Derek
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: split a number to Date format "Harvey P. Dale" <hpd1@nyu.edu> - 2012-01-14 22:20 +0000
csiph-web