Learn R Programming

networkTomography (version 0.3)

strphour: Convert time string to decimal hour

Description

Convert time string to decimal hour

Usage

strphour(x, fmt = "(%m/%d/%y %H:%M:%S)")

Arguments

x
input character vector of times
fmt
input character format for times

Value

numeric vector of decimal times in hours

Examples

Run this code
strphour("31/08/87 12:53:29")

Run the code above in your browser using DataLab