DatedUnit

DatedUnit[unit,date]

represents the specified unit at a specific date.

Details

  • 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.

Examples

open allclose all

Basic Examples  (1)

Represent the value of 100 yen in 1990:

Account for inflation between 1800 and 1950:

Scope  (1)

DatedUnit specifications can be used in compound unit specifications:

Applications  (1)

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:

Wolfram Research (2014), DatedUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/DatedUnit.html.

Text

Wolfram Research (2014), DatedUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/DatedUnit.html.

BibTeX

@misc{reference.wolfram_2020_datedunit, author="Wolfram Research", title="{DatedUnit}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DatedUnit.html}", note=[Accessed: 21-January-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_datedunit, organization={Wolfram Research}, title={DatedUnit}, year={2014}, url={https://reference.wolfram.com/language/ref/DatedUnit.html}, note=[Accessed: 21-January-2021 ]}

CMS

Wolfram Language. 2014. "DatedUnit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DatedUnit.html.

APA

Wolfram Language. (2014). DatedUnit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DatedUnit.html