Table of Contents

Method ToDateTimeFromMillisecondsSinceEpoch

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToDateTimeFromMillisecondsSinceEpoch(long)

Converts from number of milliseconds since Unix epoch to DateTime.

public static DateTime ToDateTimeFromMillisecondsSinceEpoch(long millisecondsSinceEpoch)

Parameters

millisecondsSinceEpoch long

The number of milliseconds since Unix epoch.

Returns

DateTime

A DateTime.