Skip to contents

Format difftime in a convenient way

Usage

fmt(x)

Arguments

x

difftime

Value

formatted difftime

Examples

now = Sys.time()
after = Sys.time() + 1000
if (FALSE) fmt(after - now)
if (FALSE) fmt(now - after)