Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetExpirationUtc(out DateTime)

Converts EntitlementGroupInfo.Expiration_ts to a UTC date.
Read time 1 minuteLast updated 7 days ago

Definition

TryGetExpirationUtc(DateTime)

public bool TryGetExpirationUtc(out DateTime expirationUtc)

Parameters

expirationUtc

Receives the expiry as a UTC date, or the default value if the method returns
false
.

Returns

Type

Description

bool
true
if the entitlement group has an expiry that could be read as a date;
false
if it does not expire or the value could not be read.

Remarks

Use this method instead of parsing EntitlementGroupInfo.Expiration_ts at each call site.