R: Decipher Models3 time format (HHMMSS) into hours, minutes,...
decipher.M3.time
R Documentation
Decipher Models3 time format (HHMMSS) into hours, minutes,
and seconds.
Description
Decipher Models3 time format (HHMMSS) into hours, minutes,
and seconds.
Usage
decipher.M3.time(M3.time)
Arguments
M3.time
Time (numeric) in the format HHMMSS (hours, minutes, seconds).
Value
List with the following components
hrs
hours
mins
minutes
secs
seconds
Note
For more information about Models3 date-time conventions,
see http://www.baronams.com/products/ioapi/DATETIME.html.
This function is called by function get.datetime.seq,
but it will probably not be called by most users.
## Note that the function breaks up the (numeric) input,
## where hours are designated by 00-23, minutes by 00-59,
## seconds by 00-59.
decipher.M3.time(030105)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(M3)
Loading required package: ncdf4
Loading required package: rgdal
Loading required package: sp
rgdal: version: 1.1-10, (SVN revision 622)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.11.3, released 2015/09/16
Path to GDAL shared files: /usr/share/gdal/1.11
Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]
Path to PROJ.4 shared files: (autodetected)
Linking to sp version: 1.2-3
Loading required package: maps
# maps v3.1: updated 'world': all lakes moved to separate new #
# 'lakes' database. Type '?world' or 'news(package="maps")'. #
Loading required package: mapdata
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/M3/decipher.M3.time.Rd_%03d_medium.png", width=480, height=480)
> ### Name: decipher.M3.time
> ### Title: Decipher Models3 time format (HHMMSS) into hours, minutes, and
> ### seconds.
> ### Aliases: decipher.M3.time
>
> ### ** Examples
>
> ## Note that the function breaks up the (numeric) input,
> ## where hours are designated by 00-23, minutes by 00-59,
> ## seconds by 00-59.
> decipher.M3.time(030105)
$hrs
[1] 3
$mins
[1] 1
$secs
[1] 5
>
>
>
>
>
> dev.off()
null device
1
>