Assets/WatsonCore/Utilities/Utility.cs
/// <summary>
/// Gets the epoch UTC seconds.
/// </summary>
/// <returns>The epoch UTC seconds.</returns>
Gets the epoch UTC seconds.
Gets the epoch UTC seconds .
public static double GetEpochUTCSeconds()
        {
            DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
            return (DateTime.UtcNow - epoch).TotalSeconds;
        }
public static double GetEpochUTCSeconds ( ) { DateTime epoch = new DateTime ( 1970 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ; return ( DateTime . UtcNow - epoch ) . TotalSeconds ; }
Gets the epoch UTC seconds.
Gets the epoch UTC seconds .
The epoch UTC seconds.
The epoch UTC seconds .