Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Japanese calendar/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Methods ==== Era objects have three methods. Methods can be specified with the colon syntax: * <code lang="lua">local nextEra = myEra:getNextEra()</code> The methods are as follows: * <code lang="lua">era:getNextEra()</code> - gets the era object for the next era. Returns <code>nil</code> if it doesn't exist. * <code lang="lua">era:getPreviousEra()</code> - gets the era object for the previous era. Returns <code>nil</code> if it doesn't exist. * <code lang="lua">era:getOldEra()</code> - gets the era object for the "old" era. This is the same as the current era object unless eraYear equals 1. If eraYear equals 1 then this returns the era object for the previous era. If the module could not find a valid previous era object then the current era object is returned. <includeonly>{{Sandbox other|| [[Category:Time, date and calendar modules]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)