Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7793

split a number to Date format

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!nx02.iad01.newshosting.com!newshosting.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Derek Martin <cdmartin@me.com>
Newsgroups comp.soft-sys.math.mathematica
Subject split a number to Date format
Date Sat, 14 Jan 2012 07:56:25 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <jercf9$1aa$1@smc.vnet.net> (permalink)
Lines 11
NNTP-Posting-Date 14 Jan 2012 07:56:44 GMT
NNTP-Posting-Host 83a3e27b.news.twtelecom.net
X-Trace DXC=NHDjH2e2dh9]\7jU_c<nY?C_A=>8kQj6=hHXa^^g6TZ4`l5iWPKjf87EFiONJ7[Go6]6?>[X4?Je4
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:7793

Show key headers only | View raw


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 — Next in thread | Find similar | Unroll thread


Thread

split a number to Date format Derek Martin <cdmartin@me.com> - 2012-01-14 07:56 +0000
  Re: split a number to Date format Peter Breitfeld <phbrf@t-online.de> - 2012-01-14 22:10 +0000
  Re: split a number to Date format "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2012-01-14 22:18 +0000
  Re: split a number to Date format "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-01-14 22:23 +0000

csiph-web