Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

general/misc/time/

time_double.pro


Routines

top source time_double

result = time_double(time, epoch=epoch, dim=dim, pb5=pb5, MMDDYYYY=MMDDYYYY, timezone=timezone, is_local_time=is_local_time, tt2000=tt2000, tformat=tformat)

FUNCTION: time_double(time) NAME: time_double PURPOSE: A fast, vectorized routine that returns the number of seconds since 1970. INPUT: input can be any of the following types: double(s) seconds since 1970 (returns the input) string(s) format: YYYY-MM-DD/hh:mm:ss see "time_string" structure(s) format returned in "time_struct" long array (MUST be 2 dimensional!) PB5 time (req. by CDF) OUTPUT: double, number of seconds since 1970 (UNIX time) KEYWORDS: EPOCH: if set, it implies the input is double precision EPOCH or complex double precision EPOCH16 time. TT2000: if set, it implies that the input is a 64 bit signed integer, TT2000 time: leaped nanoseconds since J2000 TFORMAT: Specify a custom format for string to double conversion: Format string such as "YYYY-MM-DD/hh:mm:ss" (Default) the following tokens are recognized: YYYY - 4 digit year yy - 2 digit year (00-69 assumed to be 2000-2069, 70-99 assumed to be 1970-1999) MM - 2 digit month DD - 2 digit date hh - 2 digit hour mm - 2 digit minute ss - 2 digit seconds .fff - fractional seconds (can be repeated, e.g. .f,.ff,.fff,.ffff, etc... are all acceptable codes) MTH - 3 character month DOY - 3 character Day of Year TDIFF - 5 character, +hhmm or -hhmm different from UTC (sign required) tformat is case sensitive! SEE ALSO: "time_string", "time_struct", "time_epoch", "time_pb5","time_parse" NOTE: This routine works on vectors and is designed to be fast. Output will have the same dimensions as the input Out of range values are interpreted correctly. ie. 1994-13-1/12:61:00 will be treated as: 1995-1-1/13:01:00 CREATED BY: Davin Larson Oct 1996 $LastChangedBy: pcruce $ $LastChangedDate: 2014-02-19 18:04:05 -0800 (Wed, 19 Feb 2014) $ $LastChangedRevision: 14395 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/misc/time/time_double.pro $

Parameters

time

Keywords

epoch
dim
pb5
MMDDYYYY
timezone
is_local_time
tt2000
tformat

File attributes

Modification date: Thu Mar 13 16:35:40 2014
Lines: 49