forked from dankelley/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ctimeToSeconds.Rd
39 lines (36 loc) · 1015 Bytes
/
ctimeToSeconds.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{ctimeToSeconds}
\alias{ctimeToSeconds}
\title{Interpret a character string as a time interval}
\usage{
ctimeToSeconds(ctime)
}
\arguments{
\item{ctime}{a character string (see \sQuote{Details}.}
}
\value{
A numeric value, the number of seconds represented by the string.
}
\description{
Interpret a character string as a time interval
Strings are of the form MM:SS or HH:MM:SS.
}
\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="")
}
\author{
Dan Kelley
}
\seealso{
See \code{\link{secondsToCtime}}, the inverse of this.
Other things related to time: \code{\link{julianCenturyAnomaly}},
\code{\link{julianDay}}, \code{\link{numberAsHMS}},
\code{\link{numberAsPOSIXct}},
\code{\link{oce.as.POSIXlt}},
\code{\link{secondsToCtime}},
\code{\link{unabbreviateYear}}
}