Hadoop Online Training by Edureka

period_to_seconds: Contrive a period to/from a given number of seconds.

Description Usage Arguments Value

Description

period_to_seconds approximately converts a period to seconds assuming there are 364.25 days in a calendar year and 365.25/12 days in a month.
seconds_to_period create a period that has the maximum number of non-zero elements (days, hours, minutes, seconds). This computation is exact because it doesn't involve years or months.

Usage

1
2
3

Arguments

x

A numeric object. The number of seconds to coerce into a period.

Value

A number (period) that roughly equates to the period (seconds) given.



Search within the lubridate package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.