Skip to content

Instantly share code, notes, and snippets.

View heape's full-sized avatar
🤒
Out sick

heape

🤒
Out sick
View GitHub Profile
@YuukiTsuchida
YuukiTsuchida / UnixTime
Created May 23, 2014 06:20
C#でのUnixTime
public static class UnixTime
{
private static readonly DateTime UNIX_EPOCH = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
/*===========================================================================*/
/**
* 現在時刻からUnixTimeを計算する.
*
* @return UnixTime.
*/