Description Usage Arguments Value Examples
Time helper functions
1 2 3 4 5 6 7 8 9 | time_to_min(x)
min_to_hr_min(x)
min_to_time(x, day = NULL, tz = "UTC")
floor_1day(x)
yyyymmdd(x)
|
x |
an object of class Date or numeric time. Note, only seconds are kept, not milliseconds |
day |
A date given in YMD format |
tz |
timezone passed to |
A Date or numeric object
1 2 3 4 5 6 7 | tm = Sys.time()
print(tm)
mins = time_to_min(tm)
mins
min_to_time(mins)
min_to_time(mins, day = "2017-01-24")
min_to_hr_min(600)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.