C# 클래스 WebApplications.Utilities.TimeHelpers

파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 프로퍼티들

프로퍼티 타입 설명
FileTimeEpoch Instant
InfiniteDuration System.Duration
MaxDuration System.Duration
MaxLocalDate LocalDate
MaxLocalDateTime LocalDateTime
MaxLocalTime LocalTime
MinDuration System.Duration
MinLocalDate LocalDate
MinLocalDateTime LocalDateTime
MinLocalTime LocalTime
OneHour System.Duration
OneMillisecond System.Duration
OneMillisecondPeriod Period
OneMinute System.Duration
OneSecond System.Duration
OneStandardDay System.Duration
OneStandardWeek System.Duration
OneTick System.Duration
OneTickPeriod Period

Private Properties

프로퍼티 타입 설명
CeilingHour Instant
CeilingMinute Instant
CeilingSecond Instant
FloorHour Instant
FloorMinute Instant
FloorSecond Instant
Hours int
InstantFromFileTimeUtc Instant
IsNegative bool
IsNegative bool
IsPositive bool
IsPositive bool
LoadTzdb IDateTimeZoneProvider
Milliseconds int
Minutes int
OnActiveUtilityConfigurationChanged void
Seconds int
StandardDays int
StandardWeeks int
TimeHelpers NodaTime
TotalHours double
TotalMilliseconds double
TotalMinutes double
TotalSeconds double
TotalStandardDays double
TotalStandardWeeks double

공개 메소드들

메소드 설명
IsZero ( [ period ) : bool

Determines whether the specified period is zero.

SetDateTimeZoneProvider ( string path = null ) : void

Sets the DateTimeZoneProvider to the time zone database given.

비공개 메소드들

메소드 설명
CeilingHour ( this instant ) : Instant
CeilingMinute ( this instant ) : Instant
CeilingSecond ( this instant ) : Instant
FloorHour ( this instant ) : Instant
FloorMinute ( this instant ) : Instant
FloorSecond ( this instant ) : Instant
Hours ( this duration ) : int
InstantFromFileTimeUtc ( long fileTimeTicks ) : Instant
IsNegative ( [ period, LocalDate local ) : bool
IsNegative ( [ period, LocalDateTime local ) : bool
IsPositive ( [ period, LocalDate local ) : bool
IsPositive ( [ period, LocalDateTime local ) : bool
LoadTzdb ( string path = null ) : IDateTimeZoneProvider
Milliseconds ( this duration ) : int
Minutes ( this duration ) : int
OnActiveUtilityConfigurationChanged ( [ sender, [ e ) : void

Called when the utility configuration changes. If the UtilityConfiguration.TimeZoneDB property changes, the database will be reloaded.

Seconds ( this duration ) : int
StandardDays ( this duration ) : int
StandardWeeks ( this duration ) : int
TimeHelpers ( ) : NodaTime

Initializes the TimeHelpers class.

TotalHours ( this duration ) : double
TotalMilliseconds ( this duration ) : double
TotalMinutes ( this duration ) : double
TotalSeconds ( this duration ) : double
TotalStandardDays ( this duration ) : double
TotalStandardWeeks ( this duration ) : double

메소드 상세

IsZero() 공개 정적인 메소드

Determines whether the specified period is zero.
public static IsZero ( [ period ) : bool
period [ The period.
리턴 bool

SetDateTimeZoneProvider() 공개 정적인 메소드

Sets the DateTimeZoneProvider to the time zone database given.
public static SetDateTimeZoneProvider ( string path = null ) : void
path string The path of the database file to load, or to use the path in the configuration. /// If no path is given in the config, the default NodaTime will be used.
리턴 void

프로퍼티 상세

FileTimeEpoch 공개적으로 정적으로 프로퍼티

The file time epoch, 12:00 A.M. January 1, 1601.
public static Instant FileTimeEpoch
리턴 Instant

InfiniteDuration 공개적으로 정적으로 프로퍼티

A constant used to specify an infinite waiting period, for methods that accept a Duration parameter.
public static Duration,System InfiniteDuration
리턴 System.Duration

MaxDuration 공개적으로 정적으로 프로퍼티

A constant used to specify the maximum duration, for methods that accept a Duration parameter.
public static Duration,System MaxDuration
리턴 System.Duration

MaxLocalDate 공개적으로 정적으로 프로퍼티

A constant used to specify the maximum local date, for methods that accept a LocalDate parameter.
public static LocalDate MaxLocalDate
리턴 LocalDate

MaxLocalDateTime 공개적으로 정적으로 프로퍼티

A constant used to specify the maximum local date time, for methods that accept a LocalDateTime parameter.
public static LocalDateTime MaxLocalDateTime
리턴 LocalDateTime

MaxLocalTime 공개적으로 정적으로 프로퍼티

A constant used to specify the maximum local time, for methods that accept a LocalTime parameter.
public static LocalTime MaxLocalTime
리턴 LocalTime

MinDuration 공개적으로 정적으로 프로퍼티

A constant used to specify the minimum duration, for methods that accept a Duration parameter.
public static Duration,System MinDuration
리턴 System.Duration

MinLocalDate 공개적으로 정적으로 프로퍼티

A constant used to specify the minimum local date, for methods that accept a LocalDate parameter.
public static LocalDate MinLocalDate
리턴 LocalDate

MinLocalDateTime 공개적으로 정적으로 프로퍼티

A constant used to specify the minimum local date time, for methods that accept a LocalDateTime parameter.
public static LocalDateTime MinLocalDateTime
리턴 LocalDateTime

MinLocalTime 공개적으로 정적으로 프로퍼티

A constant used to specify the minimum local time, for methods that accept a LocalTime parameter.
public static LocalTime MinLocalTime
리턴 LocalTime

OneHour 공개적으로 정적으로 프로퍼티

The one hour Duration.
public static Duration,System OneHour
리턴 System.Duration

OneMillisecond 공개적으로 정적으로 프로퍼티

The one millisecond Duration.
public static Duration,System OneMillisecond
리턴 System.Duration

OneMillisecondPeriod 공개적으로 정적으로 프로퍼티

The one millisecond Duration.
public static Period OneMillisecondPeriod
리턴 Period

OneMinute 공개적으로 정적으로 프로퍼티

The one minute Duration.
public static Duration,System OneMinute
리턴 System.Duration

OneSecond 공개적으로 정적으로 프로퍼티

The one second Duration.
public static Duration,System OneSecond
리턴 System.Duration

OneStandardDay 공개적으로 정적으로 프로퍼티

The one standard day Duration.
public static Duration,System OneStandardDay
리턴 System.Duration

OneStandardWeek 공개적으로 정적으로 프로퍼티

The one standard week Duration.
public static Duration,System OneStandardWeek
리턴 System.Duration

OneTick 공개적으로 정적으로 프로퍼티

The one tick Duration.
public static Duration,System OneTick
리턴 System.Duration

OneTickPeriod 공개적으로 정적으로 프로퍼티

The one tick Period.
public static Period OneTickPeriod
리턴 Period