/EpochTime

A simple bridge between DateTime and Unix time.

Primary LanguageC#

EpochTime

This is a simple bridge between .NET's System.DateTime and Unix time.

Unix Time

Unix time is measured by counting the number of seconds since 1970-01-01 00:00 UTC (the Unix epoch). Please see the Wikipedia article on Unix time for more information.

Features

  • Implicit conversion between EpochTime and DateTime.
  • Equality operators.
  • Addition/subtraction of times.
  • Supports milliseconds.