Exemplo n.º 1
0
 /// <summary>
 /// Returns the Unix timestamp for the specified <c>date</c>. The Unix timestamp is defined as the amount
 /// of seconds since the start of the Unix epoch - that is <c>1st of January, 1970 - 00:00:00 GMT</c>.
 /// </summary>
 /// <param name="date">The isntance of <see cref="DateTimeOffset"/> the timestamp should be based on.</param>
 /// <returns>An instance of <see cref="System.Double"/> representing the Unix timestamp.</returns>
 public static double GetUnixTimeFromDateTimeOffsetAsDouble(DateTimeOffset date)
 {
     return(TimeUtils.GetUnixTimeFromDateTimeOffsetAsDouble(date));
 }