ConvertTimeToHours: Convert sbatch job run time into hours

Description Usage Arguments Value Examples

View source: R/greatlakes_resource_usage.R

Description

the '$ seff <jobid>' command on Great Lakes returns a string that includes the run time of an sbatch job. These strings look like: * Job Wall-clock time: 10:30:00 or * Job Wall-clock time: 1-10:30:00 and indicate 10.5 hours or 34.5 hours, respectively. Given such a string this function converts the number portion into just hours. The time is recorded as hours:minutes:seconds.

Usage

1

Arguments

timeStr

String of the form: 1-10:30:00 or 10:30:00. The number before the dash indicates days.

Value

Number of hours rounded to 3 digits. Numeric.

Examples

1
2
ConvertTimeToHours("1-10:30:00")
ConvertTimeToHours("10:30:00")

Snitkin-Lab-Umich/snitkitr documentation built on April 21, 2021, 10:48 a.m.