Changes
Jump to navigation
Jump to search
Category:Date mathematics templates → Category:Calendar templates
<noinclude>
This template calculates Maya calendar dates using [[Gregorian calendar|Gregorian serial date]]. Left blank, this template will produce today's date in the [[Maya_calendar#Long_Count|Long count]] format. To obtain another date use '''<nowiki>{{Maya date|gsd= }}</nowiki>'''. To find the Gregorian serial date you can use the [[:Template:Gregorian serial date]] or combine the two inline. For example, '''<nowiki>{{Maya date|gsd={{Gregorian serial date|month=12|day=21|year=2012}} }}</nowiki>''' produces {{Maya date|gsd={{Gregorian serial date|month=12|day=21|year=2012}} }}.
==Today's Date is==</noinclude>
<!--Baktun:-->{{#expr:
(
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 144000)
)
/ 144000
}}.<!--Katun:-->{{#expr:
((
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 7200)
)
/ 7200
) mod 20
}}.<!--Tun:-->{{#expr:
((
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 360)
)
/ 360
) mod 20
}}.<!--Uinal:-->{{#expr:
((
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 20)
)
/ 20
) mod 18
}}.<!--Kin:-->{{#expr:
({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 20
}}<noinclude>
[[Category:Calendar templates|Maya date]]
</noinclude>
This template calculates Maya calendar dates using [[Gregorian calendar|Gregorian serial date]]. Left blank, this template will produce today's date in the [[Maya_calendar#Long_Count|Long count]] format. To obtain another date use '''<nowiki>{{Maya date|gsd= }}</nowiki>'''. To find the Gregorian serial date you can use the [[:Template:Gregorian serial date]] or combine the two inline. For example, '''<nowiki>{{Maya date|gsd={{Gregorian serial date|month=12|day=21|year=2012}} }}</nowiki>''' produces {{Maya date|gsd={{Gregorian serial date|month=12|day=21|year=2012}} }}.
==Today's Date is==</noinclude>
<!--Baktun:-->{{#expr:
(
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 144000)
)
/ 144000
}}.<!--Katun:-->{{#expr:
((
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 7200)
)
/ 7200
) mod 20
}}.<!--Tun:-->{{#expr:
((
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 360)
)
/ 360
) mod 20
}}.<!--Uinal:-->{{#expr:
((
+ ({{{gsd|{{Gregorian serial date}} }}} + 1137142)
- (({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 20)
)
/ 20
) mod 18
}}.<!--Kin:-->{{#expr:
({{{gsd|{{Gregorian serial date}} }}} + 1137142) mod 20
}}<noinclude>
[[Category:Calendar templates|Maya date]]
</noinclude>