ctimeToSeconds {oce} | R Documentation

## Interpret a character string as a time interval

### Description

Interpret a character string as a time interval

### Usage

    ctimeToSeconds(ctime)

### Arguments

`ctime` | a character string (see ‘Details’.

### Details

Strings are of the form MM:SS or HH:MM:SS.

### Value

A numeric value, the number of seconds represented by the string.

### Author(s)

Dan Kelley

### See Also

See `secondsToCtime`, the inverse of this.

### Examples

    library(oce)
    cat("10      = ", ctimeToSeconds("10"), "s\n", sep="")
    cat("01:04   = ", ctimeToSeconds("01:04"), "s\n", sep="")
    cat("1:00:00 = ", ctimeToSeconds("1:00:00"), "s\n", sep="")

[Package oce version 0.9-18 Index]