seconds: Convert arbitrary times to seconds

Description Usage Arguments Details Value Author(s) Examples

Description

A convenience function to convert arbitrary numbers of days, hours, minutes, and/or seconds into seconds.

Usage

1
seconds(days = NULL, hours = NULL, minutes = NULL, seconds = NULL)

Arguments

days

An optional number of days.

hours

An optional number of hours.

minutes

An optional number of minutes.

seconds

An optional number of seconds.

Details

A convenience function to convert arbitrary numbers of days, hours, minutes, and/or seconds into seconds. For example, to be used in setting a HIT expiration time. MTurk only accepts times (e.g., for HIT expirations, or the duration of assignments) in seconds. This function returns an integer value equal to the number of seconds of the input, and can be used atomically within other MTurkR calls (e.g., CreateHIT).

Value

An integer equal to the requested amount of time in seconds.

Author(s)

Thomas J. Leeper

Examples

1
2
seconds(hours=5, seconds=15)
seconds(days=1)

cloudyr/MTurkR documentation built on June 4, 2019, 3:30 p.m.