Skip to contents

Trasform time from hours, minutes and seconds to seconds

Usage

deco.time(x, y, z, verbose = TRUE)

Arguments

x

are hours

y

are minutes

z

are seconds

verbose

logic argument that on or off message (default is TRUE)

Value

time decomposition in seconds

Author

Pasquale Scordino p.scordino@arpa.piemonte.it

Simone Sperotto s.sperotto@arpa.piemonte.it

Examples

# Convert H:M:S to seconds
x = 5  # Hours
y = 25 # minutes
z = 50 # seconds

deco.time(x = x, y = y, z = z)
#> [1] "Time decomposition from hours, minutes and seconds to seconds:"
#> [1] 19550