def __to_struct()

in eventdata/parameter_sources/timeutils.py [0:0]


    def __to_struct(self, dt):
        # string formatting is about 4 times faster than strftime.
        iso_prefix = "%04d-%02d-%02dT%02d:%02d:%02d" % (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second)
        self._ts["iso_prefix"] = iso_prefix
        self._ts["yyyy"] = iso_prefix[:4]
        self._ts["yy"] = iso_prefix[2:4]
        self._ts["mm"] = iso_prefix[5:7]
        self._ts["dd"] = iso_prefix[8:10]
        self._ts["hh"] = iso_prefix[11:13]