You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
368 B
C#
16 lines
368 B
C#
using System;
|
|
|
|
namespace Prime31
|
|
{
|
|
// Token: 0x02000008 RID: 8
|
|
public static class DateTimeExtensions
|
|
{
|
|
// Token: 0x06000021 RID: 33 RVA: 0x00002F8C File Offset: 0x0000118C
|
|
public static long toEpochTime(this DateTime self)
|
|
{
|
|
DateTime d = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
|
return Convert.ToInt64((self - d).TotalSeconds);
|
|
}
|
|
}
|
|
}
|