Confirmed users
4,467
edits
Line 269: | Line 269: | ||
* [https://wiki.mozilla.org/index.php?title=Template:BETA_VERSION&action=edit BETA_VERSION] | * [https://wiki.mozilla.org/index.php?title=Template:BETA_VERSION&action=edit BETA_VERSION] | ||
* [https://wiki.mozilla.org/index.php?title=Template:RELEASE_VERSION&action=edit RELEASE_VERSION] | * [https://wiki.mozilla.org/index.php?title=Template:RELEASE_VERSION&action=edit RELEASE_VERSION] | ||
* [https://wiki.mozilla.org/index.php?title=Template:NextReleaseDate&action=edit NextReleaseDate] | * [https://wiki.mozilla.org/index.php?title=Template:NextReleaseDate&action=edit NextReleaseDate] | ||
** Which causes these to auto-update (with the magic of math!) | ** Which causes these to auto-update (with the magic of math!) | ||
** [https://wiki.mozilla.org/index.php?title=Template:FIREFOX_SHIP_DATE&action=edit FIREFOX_SHIP_DATE] (the next ship date) | ** [https://wiki.mozilla.org/index.php?title=Template:FIREFOX_SHIP_DATE&action=edit FIREFOX_SHIP_DATE] (the next ship date) | ||
** [https://wiki.mozilla.org/index.php?title=Template:FIREFOX_MERGE_DATE&action=edit FIREFOX_MERGE_DATE] (the next ship date) | ** [https://wiki.mozilla.org/index.php?title=Template:FIREFOX_MERGE_DATE&action=edit FIREFOX_MERGE_DATE] (the next ship date) | ||
** [https://wiki.mozilla.org/index.php?title=Template:CURRENT_CYCLE&action=edit CURRENT_CYCLE] based upon [https://wiki.mozilla.org/RapidRelease/Calendar the calendar] | |||
== Calculating the current Firefox release # and next release date == | == Calculating the current Firefox release # and next release date == | ||
The expression reads <pre>floor(Firefox 23 + ((current time - Firefox 23 release date) / 6 weeks))</pre>. This expression counts the number of full 6 week increments since Firefox 23 and adds the total to 23 to give the current release number. Similarly, we can calculate the next release date with <pre>{{#time: Y-m-d | @{{#expr: (3628800 - (({{#time: U | now}} - {{#time: U | 6 Aug 2013}}) mod 3628800)) + {{#time: U | now}}}}}}</pre>. In this case we calculate the time since the Firefox 23 release, take the remainder from dividing by 6 weeks, and subtract that from the current time. This results in the number of days until the next release. Add that to the current time to produce the next release date. | The expression reads <pre>floor(Firefox 23 + ((current time - Firefox 23 release date) / 6 weeks))</pre>. This expression counts the number of full 6 week increments since Firefox 23 and adds the total to 23 to give the current release number. Similarly, we can calculate the next release date with <pre>{{#time: Y-m-d | @{{#expr: (3628800 - (({{#time: U | now}} - {{#time: U | 6 Aug 2013}}) mod 3628800)) + {{#time: U | now}}}}}}</pre>. In this case we calculate the time since the Firefox 23 release, take the remainder from dividing by 6 weeks, and subtract that from the current time. This results in the number of days until the next release. Add that to the current time to produce the next release date. | ||
[[category:Release_Management|M]] | [[category:Release_Management|M]] |