Noda Time
Show / Hide Table of Contents

Class TimeAdjusters

Factory class for time adjusters: functions from LocalTime to LocalTime, which can be applied to LocalTime, LocalDateTime, and OffsetDateTime.
Inheritance
Object
TimeAdjusters
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: NodaTime
Assembly: NodaTime.dll
Syntax
public static class TimeAdjusters

Properties

TruncateToHour

Get a time adjuster to truncate the time to the hour, discarding fractional hours.
Declaration
public static Func<LocalTime, LocalTime> TruncateToHour { get; }
Property Value
Type Description
Func<LocalTime, LocalTime> A time adjuster to truncate the time to the hour, discarding fractional hours. (The value returned is never null.)

TruncateToMinute

Gets a time adjuster to truncate the time to the minute, discarding fractional minutes.
Declaration
public static Func<LocalTime, LocalTime> TruncateToMinute { get; }
Property Value
Type Description
Func<LocalTime, LocalTime> A time adjuster to truncate the time to the minute, discarding fractional minutes. (The value returned is never null.)

TruncateToSecond

Gets a time adjuster to truncate the time to the second, discarding fractional seconds.
Declaration
public static Func<LocalTime, LocalTime> TruncateToSecond { get; }
Property Value
Type Description
Func<LocalTime, LocalTime> A time adjuster to truncate the time to the second, discarding fractional seconds. (The value returned is never null.)
In This Article
Back to top Generated by DocFX