Commit 4573e943 authored by Jérome Perrin's avatar Jérome Perrin

Timesupport plugin: implement convertToSimulationTime

parent 1ea9782c
...@@ -42,7 +42,7 @@ class TimeSupportMixin(object): ...@@ -42,7 +42,7 @@ class TimeSupportMixin(object):
"""Convert real world time (as python datetime object) to simulation clock time. """Convert real world time (as python datetime object) to simulation clock time.
""" """
assert self.initialized, "initializeTimeSupport has not been called" assert self.initialized, "initializeTimeSupport has not been called"
raise NotImplementedError return (real_world_time - self.now).total_seconds() * self.timeUnitPerDay * 60
def getTimeUnitText(self): def getTimeUnitText(self):
"""Return the time unit as text. """Return the time unit as text.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment