README.md

Friendly Time Formats

Have you ever had to build a way too complicated time format?

my_time_format = "%Ey/%b/%0d%t%0I:%0M:%0S3 %p %Z"

No human could read this. striptimer allows you to build understandable time formats.

time_format(year %>% short %>% religious,
            "/",
            month %>% name %>% short,
            "/",
            day %>% roman,

            tab,

            hour %>% twelve %>% roman,
            ":",
            minute %>% roman,
            ":",
            second %>% digits(3),
            " ",
            am_pm,
            " ",
            timezone %>% name)

Inspired by kevinushey/rex

Installation

library(devtools)
install_github("bramtayl/strptimer")


hadley/strptimer documentation built on May 17, 2019, 12:48 p.m.