Code
hms(c(-3600, -123.45 - 60, -1, -0.001, 0, 0.001, 1, 60, 123.45, 3600, NA))
Output
-01:00:00.000
-00:03:03.450
-00:00:01.000
-00:00:00.001
00:00:00.000
00:00:00.001
00:00:01.000
00:01:00.000
00:02:03.450
01:00:00.000
NA
Code
hms(c(-3600000, -3600, -60, -1, 0, 1, 60, 3600, 3600000, NA))
Output
-1000:00:00
- 01:00:00
- 00:01:00
- 00:00:01
00:00:00
00:00:01
00:01:00
01:00:00
1000:00:00
NA
Code
hms(c(-4000.55, -3600, -60, 0, 180, 7200, 10000.23, NA))
Output
-01:06:40.55
-01:00:00.00
-00:01:00.00
00:00:00.00
00:03:00.00
02:00:00.00
02:46:40.23
NA
Code
hms(c(-60, -1, 0, 1, 60, NA))
Output
-00:01:00
-00:00:01
00:00:00
00:00:01
00:01:00
NA
Code
hms(c(-60, -1, -0.001, 0, 0.001, 1, 60, NA))
Output
-00:01:00.000
-00:00:01.000
-00:00:00.001
00:00:00.000
00:00:00.001
00:00:01.000
00:01:00.000
NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.