unix timestamp extension
This commit is contained in:
parent
cb5079a384
commit
21b1778a1f
@ -362,5 +362,7 @@ namespace NadekoBot.Extensions
|
|||||||
return sw.BaseStream;
|
return sw.BaseStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static double UnixTimestamp(this DateTime dt) => dt.ToUniversalTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user