Skip to content

Commit

Permalink
split the fluent date methods for discoverability
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiK committed Dec 30, 2013
1 parent a5b0ca3 commit 9e6e167
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,13 @@ with
DateTime.Now + 2.Days() + 3.Hours() - 5.Minutes()
```

There are also fluent methods to deal with `DateTime`:
There are also three categories of fluent methods to deal with `DateTime`:

```C#
In.TheYear(2010) // Returns the first of January of 2010
In.January // Returns 1st of January of the current year
In.FebruaryOf(2009) // Returns 1st of February of 2009
In.One.Second // DateTime.UtcNow.AddSeconds(1);
In.Two.SecondsFrom(DateTime dateTime)
In.Three.Minutes // With corresponding From method
Expand All @@ -182,6 +183,7 @@ In.Three.Days // With corresponding From method
In.Three.Weeks // With corresponding From method
In.Three.Months // With corresponding From method
In.Three.Years // With corresponding From method
On.January.The4th // Returns 4th of January of the current year
On.February.The(12) // Returns 12th of Feb of the current year
```
Expand Down

0 comments on commit 9e6e167

Please sign in to comment.