Package mosp :: Module core :: Class DateTime
[hide private]
[frames] | no frames]

Class DateTime

source code


Simulation DateTime extension.


Author: F. Ludwig

Instance Methods [hide private]

Inherited from datetime.datetime: __add__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __radd__, __reduce__, __repr__, __rsub__, __str__, __sub__, astimezone, combine, ctime, date, dst, fromtimestamp, isoformat, now, replace, strptime, time, timetuple, timetz, tzname, utcfromtimestamp, utcnow, utcoffset, utctimetuple

Inherited from datetime.date: __format__, fromordinal, isocalendar, isoweekday, strftime, today, toordinal, weekday

Inherited from object: __delattr__, __init__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
fromtick(self, sim, tick)
Returns a DateTime object representing simulation time.
source code
Class Variables [hide private]

Inherited from datetime.datetime: max, min, resolution

Properties [hide private]

Inherited from datetime.datetime: hour, microsecond, minute, second, tzinfo

Inherited from datetime.date: day, month, year

Inherited from object: __class__

Method Details [hide private]

fromtick(self, sim, tick)
Class Method

source code 

Returns a DateTime object representing simulation time.

Returns:
DateTime object with time as sim.start_timestamp+tick/sim_rel_speed