R/mytimed.R

##**********************************************
## SDPT3: version 3.1 
## Copyright (c) 1997 by
## K.C. Toh, M.J. Todd, R.H. Tutuncu
## Last Modified: 15 Sep 2004
##**********************************************

mytimed=function(t){
t <- round(t)
h <- floor(t/3600)
m <- floor((t%%3600)/60)
s <- (t%%60)%%60
return(list(h=h,m=m,s=s))
}

Try the DWD package in your browser

Any scripts or data that you put into this service are public.

DWD documentation built on May 2, 2019, 5 p.m.