Table of Contents

Codeunit "Unix Timestamp"

ID 8722
Namespace: System.DateTime

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

CreateTimestampSeconds

Create a Unix timestamp in seconds for the current date and time

procedure CreateTimestampSeconds(): BigInteger

Returns

Type Description
BigInteger

A Unix timestamp in seconds representing the current date and time

CreateTimestampSeconds

Create a Unix timestamp in seconds for the specified date and time

procedure CreateTimestampSeconds(DateTimeFrom: DateTime): BigInteger

Parameters

Name Type Description
DateTimeFrom DateTime

The DateTime that should be used to create the Unix timestamp

Returns

Type Description
BigInteger

A Unix timestamp in seconds representing the specified date and time

CreateTimestampMilliseconds

Create a Unix timestamp in milliseconds for the current date and time

procedure CreateTimestampMilliseconds(): BigInteger

Returns

Type Description
BigInteger

A Unix timestamp in milliseconds representing the current date and time

CreateTimestampMilliseconds

Create a Unix timestamp in milliseconds for the specified date and time

procedure CreateTimestampMilliseconds(DateTimeFrom: DateTime): BigInteger

Parameters

Name Type Description
DateTimeFrom DateTime

The DateTime that should be used to create the Unix timestamp

Returns

Type Description
BigInteger

A Unix timestamp in milliseconds representing the specified date and time

EvaluateTimestamp

Evaluate a Unix timestamp to a DateTime

procedure EvaluateTimestamp(Timestamp: BigInteger): DateTime

Parameters

Name Type Description
Timestamp BigInteger

The Unix timestamp that should be evaluated to a DateTime

Returns

Type Description
DateTime

The evaluated DateTime

See also