s-news
[Top] [All Lists]

timeDate

To: s-news@lists.biostat.wustl.edu
Subject: timeDate
From: Laura Chihara <lchihara@carleton.edu>
Date: Thu, 26 Oct 2006 13:18:24 -0500
Organization: Carleton College
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

How do you truncate the time portion from
a timeDate object.For example, for observations of
times such as 3/20/2006 10:21:50.000
I just want the date 3/20/2006
I want to use table to count the number of occurrences
of 3/20/2006, 3/21/2006, etc.

More generally, how do you extract other parts of the
date - say I want a variable that just keeps
the months (I want to see how many times
March occurs, April occurs, etc.)

Thanks!

-- Laura Chihara

*******************************************
Laura Chihara
Associate Professor    507-646-4065 (office)
Dept of Mathematics    507-646-4312 (fax)
Carleton College
1 North College Street
Northfield MN 55057

<Prev in Thread] Current Thread [Next in Thread>