Print `hour<-`() result (#531)

This commit is contained in:
Luke Smith 2017-05-03 07:42:23 -05:00 committed by Hadley Wickham
parent 5b3ea786c8
commit 4649b8737d
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ datetime
month(datetime) <- 01
datetime
hour(datetime) <- hour(datetime) + 1
datetime
```
Alternatively, rather than modifying in place, you can create a new date-time with `update()`. This also allows you to set multiple values at once.