craftutils.observation.epoch.Time.copy(format=None)

Return a fully independent copy the Time object, optionally changing the format.

If format is supplied then the time format of the returned Time object will be set accordingly, otherwise it will be unchanged from the original.

In this method a full copy of the internal time arrays will be made. The internal time arrays are normally not changeable by the user so in most cases the replicate() method should be used.

Parameters

formatstr, optional

Time format of the copy.

Returns

tmTime object

Copy of this object