view m-toolbox/classes/@time/double.m @ 8:2f5c9bd7d95d
database-connection-manager
Clarify ltpda_uo.retrieve parameters handling
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % DOUBLE Converts a time object into a double
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: Converts a time object into a double. The result is the number
+ − % of seconds elapsed since the unix epoch, 1970-01-01 00:00:00.000 UTC.
+ − %
+ − % VERSION: $Id: double.m,v 1.5 2011/02/18 16:48:55 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function d = double(varargin)
+ − obj = [varargin{:}];
+ − d = reshape([ obj.utc_epoch_milli ] / 1000.0, size(obj));
+ − end