<< Utilities Utilities dat_cal2gpsweek >>

scilib_geo >> Utilities > compare_date

compare_date

compares two given date vectors and returns the difference in seconds.

Calling Sequence

difference = compare_date(date_1, date_2)

Parameters

date_1

date vector [1x3] or [1x6]

date_2

date vector [1x3] or [1x6]

difference

difference in [s], 0 if identical

Description

Compares two given date vecotrs [1x3] or [1x6], and returns the difference in seconds.

Examples

diff = compare_date([2010,8,24,12,0,0], [2010,8,24,12,0,15])

See Also

Authors


Report an issue
<< Utilities Utilities dat_cal2gpsweek >>