DatedUnit[unit,date]
represents the specified unit at a specific date.
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 all close allBasic Examples (2)
Scope (2)
DatedUnit specifications can be used in compound unit specifications:
Quantity[3000., DatedUnit["USDollars", 2011] / "Acres"]If no date is specified, the current year will be assumed:
InflationAdjust[Quantity[100, DatedUnit["USDollars"]], {2025}]Applications (1)
Possible Issues (1)
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:
Fold[InflationAdjust, Quantity[3., DatedUnit["USDollars", 1990]], {1980, DatedUnit["Yen", 1980]}]Fold[InflationAdjust, Quantity[3., DatedUnit["USDollars", 1990]], {DatedUnit["Yen", 1990], 1980}]See Also
Related Guides
History
Text
Wolfram Research (2014), DatedUnit, Wolfram Language function, https://reference.wolfram.com/language/ref/DatedUnit.html.
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
BibTeX
@misc{reference.wolfram_2026_datedunit, author="Wolfram Research", title="{DatedUnit}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DatedUnit.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_datedunit, organization={Wolfram Research}, title={DatedUnit}, year={2014}, url={https://reference.wolfram.com/language/ref/DatedUnit.html}, note=[Accessed: 13-June-2026]}