Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

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

euv_date/

hms2sec.pro

tophms2sec

result = hms2sec(hms_in)

compute the number of seconds in an hr, in, sec value

Return value

number of seconds

Parameters

hms_in in required

number of hours the min and sec port of hms_in, in the form [hr, min, sec] can specify [hr], [hr, min], or [hr, min, sec] the left out ones are assumed zero

Examples

IDL> print, hms2sec([2]) 7200 IDL> print, hms2sec([2,3]) 7380 IDL> print, hms2sec([2,3,4]) 7384 IDL> print, hms2sec([[2,3,4], [2,3,5]]) 7384 7385

Author information

History:

Thu Jan 18 10:34:57 2007, Brian Larsen written and tested

Statistics

Lines: 30
McCabe complexity:

File attributes

Modifcation date: Thu Dec 4 15:18:23 2008
Lines: 71