Display your age in the years of the planets. Try other birthdays:
You can make this expression easy to apply to any planet by turning it into a pure function:
DateDifference["Jan 2, 1999", Today] /\!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "mars", Typeset`boxes$$ =
TemplateBox[{"\"Mars\"",
RowBox[{"Entity", "[",
RowBox[{"\"Planet\"", ",", "\"Mars\""}], "]"}],
"\"Entity[\\\"Planet\\\", \\\"Mars\\\"]\"", "\"planet\""},
"Entity"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "mars",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "6",
"Values" -> {{
"name" -> "Planet", "desc" -> "a planet",
"input" -> "*C.mars-_*Planet-"}, {
"name" -> "Mythology", "desc" -> "a mythological figure",
"input" -> "*C.mars-_*Mythology-"}, {
"name" -> "Company", "desc" -> "a company",
"input" -> "*C.mars-_*Company-"}, {
"name" -> "Word", "desc" -> "a word",
"input" -> "*C.mars-_*Word-"}, {
"name" -> "GivenName", "desc" -> "a given name",
"input" -> "*C.mars-_*GivenName-"}, {
"name" -> "TranslationData",
"desc" -> " referring to translations",
"input" -> "*C.mars-_*TranslationData-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.311695`5.945274829170869, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{48., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)["OrbitPeriod"]
To make a pure function, replace with # and follow the expression with &:
DateDifference["Jan 2, 1999", Today] /#["OrbitPeriod"] &
You can use that expression to find an age in the years of any planet:
DateDifference["Jan 2, 1999", Today] /#["OrbitPeriod"] &[\!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "venus", Typeset`boxes$$ =
TemplateBox[{"\"Venus\"",
RowBox[{"Entity", "[",
RowBox[{"\"Planet\"", ",", "\"Venus\""}], "]"}],
"\"Entity[\\\"Planet\\\", \\\"Venus\\\"]\"", "\"planet\""},
"Entity"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "venus",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "6",
"Values" -> {{
"name" -> "Planet", "desc" -> "a planet",
"input" -> "*C.venus-_*Planet-"}, {
"name" -> "Mythology", "desc" -> "a mythological figure",
"input" -> "*C.venus-_*Mythology-"}, {
"name" -> "GivenName", "desc" -> "a given name",
"input" -> "*C.venus-_*GivenName-"}, {
"name" -> "Species", "desc" -> "a species specification",
"input" -> "*C.venus-_*Species-"}, {
"name" -> "Mineral", "desc" -> "a mineral",
"input" -> "*C.venus-_*Mineral-"}, {
"name" -> "Movie", "desc" -> "a movie",
"input" -> "*C.venus-_*Movie-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.371625`6.021649915708965, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{53., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)]
Find your age in the years of several planets by using Map (/@) to apply the function to a list of planets:
DateDifference["Jan 2, 1999", Today] /#["OrbitPeriod"] & /@ {\!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "venus", Typeset`boxes$$ =
TemplateBox[{"\"Venus\"",
RowBox[{"Entity", "[",
RowBox[{"\"Planet\"", ",", "\"Venus\""}], "]"}],
"\"Entity[\\\"Planet\\\", \\\"Venus\\\"]\"", "\"planet\""},
"Entity"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "venus",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "6",
"Values" -> {{
"name" -> "Planet", "desc" -> "a planet",
"input" -> "*C.venus-_*Planet-"}, {
"name" -> "Mythology", "desc" -> "a mythological figure",
"input" -> "*C.venus-_*Mythology-"}, {
"name" -> "GivenName", "desc" -> "a given name",
"input" -> "*C.venus-_*GivenName-"}, {
"name" -> "Species", "desc" -> "a species specification",
"input" -> "*C.venus-_*Species-"}, {
"name" -> "Mineral", "desc" -> "a mineral",
"input" -> "*C.venus-_*Mineral-"}, {
"name" -> "Movie", "desc" -> "a movie",
"input" -> "*C.venus-_*Movie-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.371625`6.021649915708965, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{53., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\), \!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "mars", Typeset`boxes$$ =
TemplateBox[{"\"Mars\"",
RowBox[{"Entity", "[",
RowBox[{"\"Planet\"", ",", "\"Mars\""}], "]"}],
"\"Entity[\\\"Planet\\\", \\\"Mars\\\"]\"", "\"planet\""},
"Entity"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "mars",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "6",
"Values" -> {{
"name" -> "Planet", "desc" -> "a planet",
"input" -> "*C.mars-_*Planet-"}, {
"name" -> "Mythology", "desc" -> "a mythological figure",
"input" -> "*C.mars-_*Mythology-"}, {
"name" -> "Company", "desc" -> "a company",
"input" -> "*C.mars-_*Company-"}, {
"name" -> "Word", "desc" -> "a word",
"input" -> "*C.mars-_*Word-"}, {
"name" -> "GivenName", "desc" -> "a given name",
"input" -> "*C.mars-_*GivenName-"}, {
"name" -> "TranslationData",
"desc" -> " referring to translations",
"input" -> "*C.mars-_*TranslationData-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.311695`5.945274829170869, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{48., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\), \!\(\*
NamespaceBox["LinguisticAssistant",
DynamicModuleBox[{Typeset`query$$ = "earth", Typeset`boxes$$ =
TemplateBox[{"\"Earth\"",
RowBox[{"Entity", "[",
RowBox[{"\"Planet\"", ",", "\"Earth\""}], "]"}],
"\"Entity[\\\"Planet\\\", \\\"Earth\\\"]\"", "\"planet\""},
"Entity"],
Typeset`allassumptions$$ = {{
"type" -> "Clash", "word" -> "earth",
"template" -> "Assuming \"${word}\" is ${desc1}. Use as \
${desc2} instead", "count" -> "6",
"Values" -> {{
"name" -> "Planet", "desc" -> "a planet",
"input" -> "*C.earth-_*Planet-"}, {
"name" -> "CommonMaterial", "desc" -> "a general material",
"input" -> "*C.earth-_*CommonMaterial-"}, {
"name" -> "Word", "desc" -> "a word",
"input" -> "*C.earth-_*Word-"}, {
"name" -> "Book", "desc" -> "a book",
"input" -> "*C.earth-_*Book-"}, {
"name" -> "Movie", "desc" -> "a movie",
"input" -> "*C.earth-_*Movie-"}, {
"name" -> "Country", "desc" -> "all countries",
"input" -> "*C.earth-_*Country-"}}}},
Typeset`assumptions$$ = {}, Typeset`open$$ = {1},
Typeset`querystate$$ = {
"Online" -> True, "Allowed" -> True,
"mparse.jsp" -> 0.397387`6.050758649121776, "Messages" -> {}}},
DynamicBox[ToBoxes[
AlphaIntegration`LinguisticAssistantBoxes["", 4, Automatic,
Dynamic[Typeset`query$$],
Dynamic[Typeset`boxes$$],
Dynamic[Typeset`allassumptions$$],
Dynamic[Typeset`assumptions$$],
Dynamic[Typeset`open$$],
Dynamic[Typeset`querystate$$]], StandardForm],
ImageSizeCache->{48., {7., 16.}},
TrackedSymbols:>{
Typeset`query$$, Typeset`boxes$$, Typeset`allassumptions$$,
Typeset`assumptions$$, Typeset`open$$, Typeset`querystate$$}],
DynamicModuleValues:>{},
UndoTrackedVariables:>{Typeset`open$$}],
BaseStyle->{"Deploy"},
DeleteWithContents->True,
Editable->False,
SelectWithContents->True]\)}
This gives you a list of all of the planets:
PlanetData[]
Find your age in the years of all of the planets:
DateDifference["Jan 2, 1999", Today] /#["OrbitPeriod"] & /@
PlanetData[]
Add the planet to the age:
{#, DateDifference["Jan 2, 1999", Today] /#["OrbitPeriod"]} & /@
PlanetData[]
Format the data as a grid:
Grid[{#, DateDifference["Jan 2, 1999", Today] /#["OrbitPeriod"]} & /@
PlanetData[]]
Label the columns:
TableForm[{#,
DateDifference["Jan 2, 1999", Today]/#["OrbitPeriod"]} & /@
PlanetData[], TableHeadings -> {None, {"Planet", "Years Old"}}]