comparison m-toolbox/classes/@time/double.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 % DOUBLE Converts a time object into a double
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: Converts a time object into a double. The result is the number
5 % of seconds elapsed since the unix epoch, 1970-01-01 00:00:00.000 UTC.
6 %
7 % VERSION: $Id: double.m,v 1.5 2011/02/18 16:48:55 ingo Exp $
8 %
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10
11 function d = double(varargin)
12 obj = [varargin{:}];
13 d = reshape([ obj.utc_epoch_milli ] / 1000.0, size(obj));
14 end