represents the specified unit at a specific date.
- DatedUnit allows you to associate a specific date directly with a specific unit, for use in functions like InflationAdjust.
- unit specifications should be a single canonical unit string like "USDollars" or "Euros".
- date can be specified as year, DateObject, or DateList.
Examplesopen allclose all
Basic Examples (1)
Represent the value of 100 yen in 1990:
Account for inflation between 1800 and 1950:
DatedUnit specifications can be used in compound unit specifications:
Plot the rate of inflation over a period of time:
Possible Issues (1)
Arithmetic with DatedUnit is only performed when the currency and time are identical:
Because the result can differ depending on the order of operation, DatedUnit expressions should have their date and currency standardized with InflationAdjust before arithmetic is performed:
Introduced in 2014