Aqueduct.Extensions.Dates.HoursAgo C# (CSharp) Метод

HoursAgo() публичный статический Метод

Returns a date in the past by hours.
public static HoursAgo ( this hours ) : System.DateTime
hours this The hours.
Результат System.DateTime
        public static DateTime HoursAgo(this int hours)
        {
            return DateTime.Now.AddHours(-hours);
        }