Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@timetools/timetools.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % TIMETOOLS class for tools to manipulate the time. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: TIMETOOLS class for tools to manipulate the time. | |
5 % | |
6 % TIMETOOLS METHODS: | |
7 % | |
8 % Static methods: | |
9 % utc2gps - Converts UTC time to GPS seconds. | |
10 % gps2utc - Converts GPS seconds to UTC time. | |
11 % reformat_date - Reformats the input date | |
12 % | |
13 % HELP: To see the available static methods, call | |
14 % >> methods utils.timetools | |
15 % | |
16 % HISTORY: M Hewitson 26-05-08 | |
17 % Creation | |
18 % | |
19 % VERSION: $Id: timetools.m,v 1.3 2009/05/06 15:33:59 nicola Exp $ | |
20 % | |
21 % | |
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
23 | |
24 classdef timetools | |
25 | |
26 %------------------------------------------------ | |
27 %--------- Declaration of Static methods -------- | |
28 %------------------------------------------------ | |
29 methods (Static) | |
30 | |
31 %------------------------------------------------------------- | |
32 % List other methods | |
33 %------------------------------------------------------------- | |
34 | |
35 GPS_time = utc2gps(UTC_time) % Converts UTC time to GPS seconds. | |
36 UTC_time = gps2utc(GPS_time) % Converts GPS seconds to UTC time. | |
37 s = reformat_date(s) % Reformats the input date | |
38 timeZone = getTimezone(varargin) % Get the list of supported timezones | |
39 | |
40 end % End static methods | |
41 | |
42 end | |
43 |