diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/+utils/@timetools/timetools.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,43 @@
+% TIMETOOLS class for tools to manipulate the time.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% DESCRIPTION: TIMETOOLS class for tools to manipulate the time.
+%
+% TIMETOOLS METHODS:
+%
+%     Static methods:
+%       utc2gps         - Converts UTC time to GPS seconds.
+%       gps2utc         - Converts GPS seconds to UTC time.
+%       reformat_date   - Reformats the input date
+%
+% HELP:        To see the available static methods, call
+%              >> methods utils.timetools
+%
+% HISTORY:     M Hewitson 26-05-08
+%                 Creation
+%
+% VERSION:     $Id: timetools.m,v 1.3 2009/05/06 15:33:59 nicola Exp $
+%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+classdef timetools
+
+  %------------------------------------------------
+  %--------- Declaration of Static methods --------
+  %------------------------------------------------
+  methods (Static)
+
+    %-------------------------------------------------------------
+    % List other methods
+    %-------------------------------------------------------------
+
+    GPS_time = utc2gps(UTC_time) % Converts UTC time to GPS seconds.
+    UTC_time = gps2utc(GPS_time) % Converts GPS seconds to UTC time.
+    s        = reformat_date(s)  % Reformats the input date
+    timeZone = getTimezone(varargin) % Get the list of supported timezones
+
+  end % End static methods
+
+end
+