Answers for "c# get current datetime in unix tiemstamp"

C#
0

get unix time in seconds C#

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

c# unix timestamp

var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
Posted by: Guest on February-14-2021
0

c# unix timestamp

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

C# Answers by Framework

Browse Popular Code Answers by Language