seconds: Convert arbitrary times to seconds

secondsR Documentation

Convert arbitrary times to seconds

Description

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

Usage

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


cloudyr/pyMTurkR documentation built on April 7, 2024, 12:07 p.m.