Class | Analysis and data manipulation command |
Name | date |
Arguments | <quantitative_trait> [julian|gregorian|year] |
Convert a numeric variable from Julian to Gregorian, Gregorian to Julian, or Gregorian to "decimal" year. The "chronological" Julian date is the number of days since the epoch, usually 1970-01-01 or -4712-01-01. Gregorian dates are represented as 8 (or 9) digit integers of the form of (-)YYYYMMDD. The decimal years are YYYY.x, where the decimal part is the day of year number (from 1...366) divided by the length of that year (365 or 366).
Example:
>> date DOB julian Converting dates at "DOB" from Gregorian to Julian (epoch="1970-01-01").
Class | Analysis and data manipulation command |
Name | date |
Arguments | (<yyyymmdd> julian)| (<juldate> gregorian) |
Convert a single date from Julian to Gregorian or Gregorian to Julian.
Example:
>> date 19000101 Date: 19000101 = -25567
See also:
set epoch | set epoch for Julian dates |
<< (flip) | Up to index | >> (standardize) |