Time Class

Time class.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public class Time
Inheritance
Object    Time

Constructors

TimeInitializes a new instance of the Time class

Methods

ApplyTimeZone Adjusts the date to the provided time zone.
CalculateTime(DateTime, DateTime) Converts a time interval between two dates and times.
CalculateTime(NullableDateTime, NullableDateTime) Converts a time interval between two times.
CalculateTime(DateTime, NullableDateTime, DateTime, NullableDateTime) Converts a time interval between two dates and times.
CalculateTimeSchedule(DateTime, DateTime) Converts a schedule time interval between a start date and an end date, if there are intervals greater than 24 hours, they are considered as times of a schedule that repeats for several days
CalculateTimeSchedule(DateTime, NullableDateTime, DateTime, NullableDateTime) Converts a schedule time interval between a start date and an end date, if there are intervals greater than 24 hours, they are considered as times of a schedule that repeats for several days
ToDecimal Converts a time interval to the indicated time unit.
ToDouble Converts a time interval to the indicated time unit.
ToString(TimeSpan, Boolean, Boolean) Convert time to text (5 hours and 10 minutes or 15 minutes and 58 seconds, ...).
ToString(TimeUnit, Decimal, Boolean) Converts a time unit value to text (example in hours: 15 hours, 1 hour, 0.5 hours, ...).
ToString(TimeUnit, Double, Boolean) Converts a time unit value to text (example in hours: 15 hours, 1 hour, 0.5 hours, ...).
ToString(TimeUnit, Int32, Boolean) Converts a time unit value to text (example in hours: 15 hours, 1 hour, 0.5 hours, ...).
ToString(TimeSpan, NullableInt32, NullableInt32, Boolean) Convert time to text (5 hours and 10 minutes or 15 minutes and 58 seconds, ...).
ToTimeSpan(TimeUnit, Decimal) Converts a time unit value to text (example in hours: 15 hours, 1 hour, 0.5 hours, ...).
ToTimeSpan(TimeUnit, Double) Converts a time unit value to text (example in hours: 15 hours, 1 hour, 0.5 hours, ...).

Extension Methods

GetAttributeFromT Get attribute from a class.
(Defined by ObjectExtensions)
ValidateDataAnnotations Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions)

See Also