Get Minute Unix - CSharp System

CSharp examples for System:DateTime Minute

Description

Get Minute Unix

Demo Code


using System;/*  w  w  w .j av  a2s . c  o m*/

public class Main{
        public static long GetMinuteUnix()
        {
            var r = (long)(DateTime.UtcNow - DateTime.Parse("1970-01-01")).TotalMinutes / 10;

            return r * 10 * 60;
        }
}

Related Tutorials