コード例 #1
0
 /// <summary>
 /// Returns an instance of <see cref="DateTime"/> based on 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="timestamp">The Unix timestamp specified in seconds.</param>
 /// <returns>The timestamp as an instance of <see cref="DateTime"/>.</returns>
 public static DateTime GetDateTimeFromUnixTime(string timestamp)
 {
     return(TimeUtils.GetDateTimeFromUnixTime(timestamp));
 }