Returns the gpsweek for a given date.
[weeks, wsecs] = dat_cal2gpsweek(year, month, day [,hour, min, sec]) [weeks, wsecs] = dat_cal2gpsweek(cal)
date as vector (mx3
) or
(mx6
)
year, integer (>0)
month, integer (0<month<=12)
day, Integer (0<day<=31)
Daytime in UTC [hours, minutes, seconds] (optional and experimental)
gps weeks, integer
seconds since beginn of week, integer (experimental)
This function returns the gps week of a given date (year, month, day [, daytime in UTC]).
First day of the (GPS-)week is Sunday. Beginning with 0 at 6. Januar 1980.
At 22. August 1999 the gps week reached 1024. In some cases (broadcast directly from the GPS satelite) the GPS week rollover is to take into account, beginning again with 0.
For details see: Zeitdefinitionen:GPS
leapseconds are not taken into account
No warranty, there are not enough input checks.