This function creates a data frame of durations.
Examples
# Create durations of 1 hour
create_durations("1 hour")
#> id duration
#> 1 ti_0001 2025-02-09 00:00:00 UTC--2025-02-09 00:59:59 UTC
#> 2 ti_0002 2025-02-09 01:00:00 UTC--2025-02-09 01:59:59 UTC
#> 3 ti_0003 2025-02-09 02:00:00 UTC--2025-02-09 02:59:59 UTC
#> 4 ti_0004 2025-02-09 03:00:00 UTC--2025-02-09 03:59:59 UTC
#> 5 ti_0005 2025-02-09 04:00:00 UTC--2025-02-09 04:59:59 UTC
#> 6 ti_0006 2025-02-09 05:00:00 UTC--2025-02-09 05:59:59 UTC
#> 7 ti_0007 2025-02-09 06:00:00 UTC--2025-02-09 06:59:59 UTC
#> 8 ti_0008 2025-02-09 07:00:00 UTC--2025-02-09 07:59:59 UTC
#> 9 ti_0009 2025-02-09 08:00:00 UTC--2025-02-09 08:59:59 UTC
#> 10 ti_000a 2025-02-09 09:00:00 UTC--2025-02-09 09:59:59 UTC
#> 11 ti_000b 2025-02-09 10:00:00 UTC--2025-02-09 10:59:59 UTC
#> 12 ti_000c 2025-02-09 11:00:00 UTC--2025-02-09 11:59:59 UTC
#> 13 ti_000d 2025-02-09 12:00:00 UTC--2025-02-09 12:59:59 UTC
#> 14 ti_000e 2025-02-09 13:00:00 UTC--2025-02-09 13:59:59 UTC
#> 15 ti_000f 2025-02-09 14:00:00 UTC--2025-02-09 14:59:59 UTC
#> 16 ti_0010 2025-02-09 15:00:00 UTC--2025-02-09 15:59:59 UTC
#> 17 ti_0011 2025-02-09 16:00:00 UTC--2025-02-09 16:59:59 UTC
#> 18 ti_0012 2025-02-09 17:00:00 UTC--2025-02-09 17:59:59 UTC
#> 19 ti_0013 2025-02-09 18:00:00 UTC--2025-02-09 18:59:59 UTC
#> 20 ti_0014 2025-02-09 19:00:00 UTC--2025-02-09 19:59:59 UTC
#> 21 ti_0015 2025-02-09 20:00:00 UTC--2025-02-09 20:59:59 UTC
#> 22 ti_0016 2025-02-09 21:00:00 UTC--2025-02-09 21:59:59 UTC
#> 23 ti_0017 2025-02-09 22:00:00 UTC--2025-02-09 22:59:59 UTC
#> 24 ti_0018 2025-02-09 23:00:00 UTC--2025-02-09 23:59:59 UTC
# Create durations of 30 minutes
create_durations("30 minutes")
#> id duration
#> 1 ti_0001 2025-02-09 00:00:00 UTC--2025-02-09 00:29:59 UTC
#> 2 ti_0002 2025-02-09 00:30:00 UTC--2025-02-09 00:59:59 UTC
#> 3 ti_0003 2025-02-09 01:00:00 UTC--2025-02-09 01:29:59 UTC
#> 4 ti_0004 2025-02-09 01:30:00 UTC--2025-02-09 01:59:59 UTC
#> 5 ti_0005 2025-02-09 02:00:00 UTC--2025-02-09 02:29:59 UTC
#> 6 ti_0006 2025-02-09 02:30:00 UTC--2025-02-09 02:59:59 UTC
#> 7 ti_0007 2025-02-09 03:00:00 UTC--2025-02-09 03:29:59 UTC
#> 8 ti_0008 2025-02-09 03:30:00 UTC--2025-02-09 03:59:59 UTC
#> 9 ti_0009 2025-02-09 04:00:00 UTC--2025-02-09 04:29:59 UTC
#> 10 ti_000a 2025-02-09 04:30:00 UTC--2025-02-09 04:59:59 UTC
#> 11 ti_000b 2025-02-09 05:00:00 UTC--2025-02-09 05:29:59 UTC
#> 12 ti_000c 2025-02-09 05:30:00 UTC--2025-02-09 05:59:59 UTC
#> 13 ti_000d 2025-02-09 06:00:00 UTC--2025-02-09 06:29:59 UTC
#> 14 ti_000e 2025-02-09 06:30:00 UTC--2025-02-09 06:59:59 UTC
#> 15 ti_000f 2025-02-09 07:00:00 UTC--2025-02-09 07:29:59 UTC
#> 16 ti_0010 2025-02-09 07:30:00 UTC--2025-02-09 07:59:59 UTC
#> 17 ti_0011 2025-02-09 08:00:00 UTC--2025-02-09 08:29:59 UTC
#> 18 ti_0012 2025-02-09 08:30:00 UTC--2025-02-09 08:59:59 UTC
#> 19 ti_0013 2025-02-09 09:00:00 UTC--2025-02-09 09:29:59 UTC
#> 20 ti_0014 2025-02-09 09:30:00 UTC--2025-02-09 09:59:59 UTC
#> 21 ti_0015 2025-02-09 10:00:00 UTC--2025-02-09 10:29:59 UTC
#> 22 ti_0016 2025-02-09 10:30:00 UTC--2025-02-09 10:59:59 UTC
#> 23 ti_0017 2025-02-09 11:00:00 UTC--2025-02-09 11:29:59 UTC
#> 24 ti_0018 2025-02-09 11:30:00 UTC--2025-02-09 11:59:59 UTC
#> 25 ti_0019 2025-02-09 12:00:00 UTC--2025-02-09 12:29:59 UTC
#> 26 ti_001a 2025-02-09 12:30:00 UTC--2025-02-09 12:59:59 UTC
#> 27 ti_001b 2025-02-09 13:00:00 UTC--2025-02-09 13:29:59 UTC
#> 28 ti_001c 2025-02-09 13:30:00 UTC--2025-02-09 13:59:59 UTC
#> 29 ti_001d 2025-02-09 14:00:00 UTC--2025-02-09 14:29:59 UTC
#> 30 ti_001e 2025-02-09 14:30:00 UTC--2025-02-09 14:59:59 UTC
#> 31 ti_001f 2025-02-09 15:00:00 UTC--2025-02-09 15:29:59 UTC
#> 32 ti_0020 2025-02-09 15:30:00 UTC--2025-02-09 15:59:59 UTC
#> 33 ti_0021 2025-02-09 16:00:00 UTC--2025-02-09 16:29:59 UTC
#> 34 ti_0022 2025-02-09 16:30:00 UTC--2025-02-09 16:59:59 UTC
#> 35 ti_0023 2025-02-09 17:00:00 UTC--2025-02-09 17:29:59 UTC
#> 36 ti_0024 2025-02-09 17:30:00 UTC--2025-02-09 17:59:59 UTC
#> 37 ti_0025 2025-02-09 18:00:00 UTC--2025-02-09 18:29:59 UTC
#> 38 ti_0026 2025-02-09 18:30:00 UTC--2025-02-09 18:59:59 UTC
#> 39 ti_0027 2025-02-09 19:00:00 UTC--2025-02-09 19:29:59 UTC
#> 40 ti_0028 2025-02-09 19:30:00 UTC--2025-02-09 19:59:59 UTC
#> 41 ti_0029 2025-02-09 20:00:00 UTC--2025-02-09 20:29:59 UTC
#> 42 ti_002a 2025-02-09 20:30:00 UTC--2025-02-09 20:59:59 UTC
#> 43 ti_002b 2025-02-09 21:00:00 UTC--2025-02-09 21:29:59 UTC
#> 44 ti_002c 2025-02-09 21:30:00 UTC--2025-02-09 21:59:59 UTC
#> 45 ti_002d 2025-02-09 22:00:00 UTC--2025-02-09 22:29:59 UTC
#> 46 ti_002e 2025-02-09 22:30:00 UTC--2025-02-09 22:59:59 UTC
#> 47 ti_002f 2025-02-09 23:00:00 UTC--2025-02-09 23:29:59 UTC
#> 48 ti_0030 2025-02-09 23:30:00 UTC--2025-02-09 23:59:59 UTC