Answers for "unix time c#"

C#
4

unix time c#

Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
Posted by: Guest on March-03-2020
0

get unix time in seconds C#

DateTimeOffset.UtcNow.ToUnixTimeSeconds()
Posted by: Guest on November-20-2020

C# Answers by Framework

Browse Popular Code Answers by Language