s-news
[Top] [All Lists]

Comparing today's date to a particular date

To: s-news@lists.biostat.wustl.edu
Subject: Comparing today's date to a particular date
From: Dennis Fisher <fisher@plessthan.com>
Date: Tue, 15 Jan 2008 10:02:39 -0800
Colleagues,

I would like to compare today's date to a particular date, e.g., next January 1.  In R, you could do something like:

as.numeric(Sys.Date()) < as.numeric(as.Date("2009-01-01"))

However, fewer time-related commands are available in S-Plus.  Does anyone have a quick fix to this?

Dennis


Dennis Fisher MD

P < (The "P Less Than" Company)

Phone: 1-866-PLessThan (1-866-753-7784)

Fax: 1-415-564-2220

www.PLessThan.com


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