Table of Contents

Class DateTimeUnit

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

Represents the unit for various DateTime operations.

public abstract class DateTimeUnit
Inheritance
DateTimeUnit
Inherited Members

Properties

Day

Day unit.

Hour

Hour unit.

Millisecond

Millisecond unit.

Minute

Minute unit.

Month

Month unit.

Quarter

Quarter unit.

Second

Second unit.

StartOfWeek

The day of the start of the week (only valid with Week units that specify a start of the week).

Unit

The unit.

Week

Week unit.

WeekStartingFriday

Week starting on Friday unit.

WeekStartingMonday

Week starting on Monday unit.

WeekStartingSaturday

Week starting on Saturday unit.

WeekStartingSunday

Week starting on Sunday unit.

WeekStartingThursday

Week starting on Thursday unit.

WeekStartingTuesday

Week starting on Tuesday unit.

WeekStartingWednesday

Week starting on Wednesday unit.

Year

Year unit.