toPublishPeriod

Converts the Duration to publish period object.

Note that this may get rounded to a different value.