Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

DistributedUIDGenerator.CustomEpoch

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public long CustomEpoch;

Description

The epoch, in Unix milliseconds, that timestamps are measured from.

Defaults to 2020-01-01T00:00:00Z, which every generator built by the default constructor shares. The 41-bit timestamp covers 69 years from the epoch. A generator restored from a saved SharedTableData always measures from the default epoch, so an epoch passed to the constructor lasts only for the life of that instance.