Daten der Form 8710230920 aufspalten in Jahr, Monat, Tag, Std, Min

u.datumdecode(d, YMDHMnames = c("Jahr", "Monat", "Tag", "Std", "Min"))

Arguments

d

numeric dates in the form YYMMDDHHMM.

YMDHMnames

(column) names to be used for the result.

Value

a numeric matrix (or vector) with 5 columns containing the year, month, etc.

Author

?? (someone at SfS ETH)

Note

MM: This is a wrong concept, and also suffers from the “millenium bug” (by using only 2 digits for the year).

See also

R's proper date-time coding: DateTimeClasses; u.date etc.

Examples

u.datumdecode(8710230920)
#>  Jahr Monat   Tag   Std   Min 
#>    87    10    23     9    20 
##  Jahr Monat   Tag   Std   Min
##    87    10    23     9    20

u.datumdecode(c(8710230900, 9710230920, 0210230920))
#>      Jahr Monat Tag Std Min
#> [1,]   87    10  23   9   0
#> [2,]   97    10  23   9  20
#> [3,]    2    10  23   9  20
##      Jahr Monat Tag Std Min
## [1,]   87    10  23   9  00
## [2,]   97    10  23   9  20
## [3,]    2    10  23   9  20