Debian Codegraph @

man/u.datumdecode.Rd

raw
1 \name{u.datumdecode}
2 \alias{u.datumdecode}
3 \title{Convert \dQuote{Numeric} Dates}
4 \description{
5 Daten der Form 8710230920 aufspalten in Jahr, Monat, Tag, Std, Min
6 }
7 \usage{
8 u.datumdecode(d, YMDHMnames = c("Jahr", "Monat", "Tag", "Std", "Min"))
9 }
10 \arguments{
11 \item{d}{numeric dates in the form YYMMDDHHMM.}
12 \item{YMDHMnames}{(column) names to be used for the result.}
13 }
14 % \details{
15 % ~~ If necessary, more details than the __description__ above ~~
16 % }
17 \value{
18 a numeric matrix (or vector) with 5 columns containing the year,
19 month, etc.
20 }
21 \author{?? (someone at SfS ETH)}
22 \note{%% Hence: DEPRECATE !?
23 MM: This is a wrong concept, and also suffers from the \dQuote{millenium bug}
24 (by using only 2 digits for the year).
25 }
26 \seealso{\R's \emph{proper} date-time coding: \code{\link{DateTimeClasses}};
27 \code{\link{u.date}} etc.
28 }
29 \examples{
30 u.datumdecode(8710230920)
31 ## Jahr Monat Tag Std Min
32 ## 87 10 23 9 20
33
34 u.datumdecode(c(8710230900, 9710230920, 0210230920))
35 ## Jahr Monat Tag Std Min
36 ## [1,] 87 10 23 9 00
37 ## [2,] 97 10 23 9 20
38 ## [3,] 2 10 23 9 20
39 }
40 \keyword{utilities}