LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 22 Mar 2006 21:00:51 -0800
Reply-To:     David L Cassell <davidlcassell@MSN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         David L Cassell <davidlcassell@MSN.COM>
Subject:      Re: Unix Date/Time Stamp
In-Reply-To:  <200603230031.k2MJqMMa031322@malibu.cc.uga.edu>
Content-Type: text/plain; format=flowed

vuw100@YAHOO.COM wrote: >Is there a way in SAS that I can use to convert Linux/Unix datetime stamp >to >Julian Date

First, I have some questions.

Are you reading this in from a flat file or a pipe? If so, are you using an appropriate informat so that the datetime is converted to a SAS datetime variable, instead of keeping it as some awkward text string?

Do you really need the result as a Julian date, or can you use a date format to make the result *look* correct? If you want the date as a Julian date instead of merely displaying as a Julian date, then why do you want that?

WHICH Julian date format is the one that you want? I mean, you did know that 'Julian date' doesn't mean anything, because it may be four or five different formats, all of which are called 'Julian date'. And that doesn't include the astronomical meaning of the term. So look up the formats:

JULDAYw. PDJULGw. PDJULIw. JULIANw.

and let us know which one you plan to use.

HTH, David -- David L. Cassell mathematical statistician Design Pathways 3115 NW Norwood Pl. Corvallis OR 97330

_________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/


Back to: Top of message | Previous page | Main SAS-L page