Program: MKY2YMDHMS
mky2ymdhms....convert number of years with decimal fractions into y/m/d/h/m/s
call: ymdhms=mky2ymdhms(years);
ymdhms=mky2ymdhms(years,mode);
years: number of years, with decimal fractions
mode: sting defining the output format mode
available are:
'string': the output will be a string variable containing a
prettyprinted y:m:d:h:m:s string
'number': the output will be a 6 elements vector
[y m d h m s]
DEFAULT: number
result: ymdhms: string or vector containing y,m,d,h,m,s information
formatted according to MODE.
It is assumed that one year has 12 months, each 365.25/12 days long.
Martin Knpameyer, 15.11.2005
Read M-File Source Code
eof.