Difference between revisions of "Template:JULIANDAY/testcases"
Jump to navigation
Jump to search
imported>Johnuniq (use fix=on or partial=on where needed) |
imported>Jonesey95 |
||
Line 12: | Line 12: | ||
! [[REXX|REXX]] | ! [[REXX|REXX]] | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0000</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0000|03|01|0}} | |align="right"| {{JULIANDAY|0000|03|01|0}} | ||
|align="right"| -678881 | |align="right"| -678881 | ||
Line 18: | Line 18: | ||
|align="right"| -306 | |align="right"| -306 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>01</code>|<code>31</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0001|01|31|0}} | |align="right"| {{JULIANDAY|0001|01|31|0}} | ||
|align="right"| -678545 | |align="right"| -678545 | ||
Line 24: | Line 24: | ||
|align="right"| 30 | |align="right"| 30 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>02</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0001|02|01|0}} | |align="right"| {{JULIANDAY|0001|02|01|0}} | ||
|align="right"| -678544 | |align="right"| -678544 | ||
Line 30: | Line 30: | ||
|align="right"| 31 | |align="right"| 31 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>02</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0001|02|28|0}} | |align="right"| {{JULIANDAY|0001|02|28|0}} | ||
|align="right"| -678517 | |align="right"| -678517 | ||
Line 36: | Line 36: | ||
|align="right"| 58 | |align="right"| 58 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0001|03|01|0}} | |align="right"| {{JULIANDAY|0001|03|01|0}} | ||
|align="right"| -678516 | |align="right"| -678516 | ||
Line 42: | Line 42: | ||
|align="right"| 59 | |align="right"| 59 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>08</code>|<code>31</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0001|08|31|0}} | |align="right"| {{JULIANDAY|0001|08|31|0}} | ||
|align="right"| -678333 | |align="right"| -678333 | ||
Line 48: | Line 48: | ||
|align="right"| 242 | |align="right"| 242 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>09</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0001|09|01|0}} | |align="right"| {{JULIANDAY|0001|09|01|0}} | ||
|align="right"| -678332 | |align="right"| -678332 | ||
Line 54: | Line 54: | ||
|align="right"| 243 | |align="right"| 243 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0004</code>|<code>02</code>|<code>29</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0004|02|29|0}} | |align="right"| {{JULIANDAY|0004|02|29|0}} | ||
|align="right"| -677421 | |align="right"| -677421 | ||
Line 60: | Line 60: | ||
|align="right"| 1154 | |align="right"| 1154 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0004</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|0004|03|01|0}} | |align="right"| {{JULIANDAY|0004|03|01|0}} | ||
|align="right"| -677420 | |align="right"| -677420 | ||
Line 66: | Line 66: | ||
|align="right"| 1155 | |align="right"| 1155 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1259</code>|<code>03</code>|<code>02</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1259|03|02|0}} | |align="right"| {{JULIANDAY|1259|03|02|0}} | ||
|align="right"| -219040 | |align="right"| -219040 | ||
Line 72: | Line 72: | ||
|align="right"| 459535 | |align="right"| 459535 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1516</code>|<code>12</code>|<code>30</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1516|12|30|0}} | |align="right"| {{JULIANDAY|1516|12|30|0}} | ||
|align="right"| -124870 | |align="right"| -124870 | ||
Line 78: | Line 78: | ||
|align="right"| 553705 | |align="right"| 553705 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1582</code>|<code>10</code>|<code>15</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1582|10|15|0}} | |align="right"| {{JULIANDAY|1582|10|15|0}} | ||
|align="right"| -100840 | |align="right"| -100840 | ||
Line 84: | Line 84: | ||
|align="right"| 577735 | |align="right"| 577735 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1752</code>|<code>09</code>|<code>14</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1752|09|14|0}} | |align="right"| {{JULIANDAY|1752|09|14|0}} | ||
|align="right"| -38779 | |align="right"| -38779 | ||
Line 90: | Line 90: | ||
|align="right"| 639796 | |align="right"| 639796 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1858</code>|<code>11</code>|<code>17</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1858|11|17|0}} | |align="right"| {{JULIANDAY|1858|11|17|0}} | ||
|align="right"| 0 | |align="right"| 0 | ||
Line 96: | Line 96: | ||
|align="right"| 678575 | |align="right"| 678575 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1895</code>|<code>02</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1895|02|28|0}} | |align="right"| {{JULIANDAY|1895|02|28|0}} | ||
|align="right"| 13252 | |align="right"| 13252 | ||
Line 102: | Line 102: | ||
|align="right"| 691827 | |align="right"| 691827 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1895</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1895|03|01|0}} | |align="right"| {{JULIANDAY|1895|03|01|0}} | ||
|align="right"| 13253 | |align="right"| 13253 | ||
Line 108: | Line 108: | ||
|align="right"| 691828 | |align="right"| 691828 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1896</code>|<code>02</code>|<code>29</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1896|02|29|0}} | |align="right"| {{JULIANDAY|1896|02|29|0}} | ||
|align="right"| 13618 | |align="right"| 13618 | ||
Line 114: | Line 114: | ||
|align="right"| 692193 | |align="right"| 692193 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1896</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1896|03|01|0}} | |align="right"| {{JULIANDAY|1896|03|01|0}} | ||
|align="right"| 13619 | |align="right"| 13619 | ||
Line 120: | Line 120: | ||
|align="right"| 692194 | |align="right"| 692194 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1900|02|28|0}} | |align="right"| {{JULIANDAY|1900|02|28|0}} | ||
|align="right"| 15078 | |align="right"| 15078 | ||
Line 126: | Line 126: | ||
|align="right"| 693653 | |align="right"| 693653 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1900</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1900|03|01|0}} | |align="right"| {{JULIANDAY|1900|03|01|0}} | ||
|align="right"| 15079 | |align="right"| 15079 | ||
Line 132: | Line 132: | ||
|align="right"| 693654 | |align="right"| 693654 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1970</code>|<code>01</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|1970|01|01|0}} | |align="right"| {{JULIANDAY|1970|01|01|0}} | ||
|align="right"| 40587 | |align="right"| 40587 | ||
Line 138: | Line 138: | ||
|align="right"| 719162 | |align="right"| 719162 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>29</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|2000|02|29|0}} | |align="right"| {{JULIANDAY|2000|02|29|0}} | ||
|align="right"| 51603 | |align="right"| 51603 | ||
Line 144: | Line 144: | ||
|align="right"| 730178 | |align="right"| 730178 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>2000</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|2000|03|01|0}} | |align="right"| {{JULIANDAY|2000|03|01|0}} | ||
|align="right"| 51604 | |align="right"| 51604 | ||
Line 150: | Line 150: | ||
|align="right"| 730179 | |align="right"| 730179 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>2738</code>|<code>11</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY|2738|11|28|0}} | |align="right"| {{JULIANDAY|2738|11|28|0}} | ||
|align="right"| 321424 | |align="right"| 321424 | ||
Line 158: | Line 158: | ||
;Examples adapted from {{Ltsmeta|YMD2MJD}}: | ;Examples adapted from {{Ltsmeta|YMD2MJD}}: | ||
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>28</code>}} = {{JULIANDAY|1900|02|28}}, last day of February 1900 |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>29</code>}} = {{JULIANDAY|1900|02|29}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>03</code>|<code>01</code>}} = {{JULIANDAY|1900|03|01}}, no leap year |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>30</code>}} = {{JULIANDAY|1900|02|30}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>03</code>|<code>02</code>}} = {{JULIANDAY|1900|03|02}} |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>29</code>}} = {{JULIANDAY|2000|02|29}}, last day of February 2000 |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>30</code>}} = {{JULIANDAY|2000|02|30}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>03</code>|<code>01</code>}} = {{JULIANDAY|2000|03|01}}, leap year |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>31</code>}} = {{JULIANDAY|2000|02|31}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>03</code>|<code>02</code>}} = {{JULIANDAY|2000|03|02}} |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>{{CURRENTYEAR}}</code>|<code>{{CURRENTMONTH}}</code>|<code>{{CURRENTDAY2}}</code>}} = {{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}} |
== Sandbox == | == Sandbox == | ||
Line 181: | Line 181: | ||
! [[REXX|REXX]] | ! [[REXX|REXX]] | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0000</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0000|03|01|0}} | |align="right"| {{JULIANDAY/sandbox|0000|03|01|0}} | ||
|align="right"| -678881 | |align="right"| -678881 | ||
Line 187: | Line 187: | ||
|align="right"| -306 | |align="right"| -306 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>01</code>|<code>31</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0001|01|31|0}} | |align="right"| {{JULIANDAY/sandbox|0001|01|31|0}} | ||
|align="right"| -678545 | |align="right"| -678545 | ||
Line 193: | Line 193: | ||
|align="right"| 30 | |align="right"| 30 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>02</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0001|02|01|0}} | |align="right"| {{JULIANDAY/sandbox|0001|02|01|0}} | ||
|align="right"| -678544 | |align="right"| -678544 | ||
Line 199: | Line 199: | ||
|align="right"| 31 | |align="right"| 31 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>02</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0001|02|28|0}} | |align="right"| {{JULIANDAY/sandbox|0001|02|28|0}} | ||
|align="right"| -678517 | |align="right"| -678517 | ||
Line 205: | Line 205: | ||
|align="right"| 58 | |align="right"| 58 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0001|03|01|0}} | |align="right"| {{JULIANDAY/sandbox|0001|03|01|0}} | ||
|align="right"| -678516 | |align="right"| -678516 | ||
Line 211: | Line 211: | ||
|align="right"| 59 | |align="right"| 59 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>08</code>|<code>31</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0001|08|31|0}} | |align="right"| {{JULIANDAY/sandbox|0001|08|31|0}} | ||
|align="right"| -678333 | |align="right"| -678333 | ||
Line 217: | Line 217: | ||
|align="right"| 242 | |align="right"| 242 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0001</code>|<code>09</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0001|09|01|0}} | |align="right"| {{JULIANDAY/sandbox|0001|09|01|0}} | ||
|align="right"| -678332 | |align="right"| -678332 | ||
Line 223: | Line 223: | ||
|align="right"| 243 | |align="right"| 243 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0004</code>|<code>02</code>|<code>29</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0004|02|29|0}} | |align="right"| {{JULIANDAY/sandbox|0004|02|29|0}} | ||
|align="right"| -677421 | |align="right"| -677421 | ||
Line 229: | Line 229: | ||
|align="right"| 1154 | |align="right"| 1154 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>0004</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|0004|03|01|0}} | |align="right"| {{JULIANDAY/sandbox|0004|03|01|0}} | ||
|align="right"| -677420 | |align="right"| -677420 | ||
Line 235: | Line 235: | ||
|align="right"| 1155 | |align="right"| 1155 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1259</code>|<code>03</code>|<code>02</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1259|03|02|0}} | |align="right"| {{JULIANDAY/sandbox|1259|03|02|0}} | ||
|align="right"| -219040 | |align="right"| -219040 | ||
Line 241: | Line 241: | ||
|align="right"| 459535 | |align="right"| 459535 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1516</code>|<code>12</code>|<code>30</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1516|12|30|0}} | |align="right"| {{JULIANDAY/sandbox|1516|12|30|0}} | ||
|align="right"| -124870 | |align="right"| -124870 | ||
Line 247: | Line 247: | ||
|align="right"| 553705 | |align="right"| 553705 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1582</code>|<code>10</code>|<code>15</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1582|10|15|0}} | |align="right"| {{JULIANDAY/sandbox|1582|10|15|0}} | ||
|align="right"| -100840 | |align="right"| -100840 | ||
Line 253: | Line 253: | ||
|align="right"| 577735 | |align="right"| 577735 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1752</code>|<code>09</code>|<code>14</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1752|09|14|0}} | |align="right"| {{JULIANDAY/sandbox|1752|09|14|0}} | ||
|align="right"| -38779 | |align="right"| -38779 | ||
Line 259: | Line 259: | ||
|align="right"| 639796 | |align="right"| 639796 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1858</code>|<code>11</code>|<code>17</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1858|11|17|0}} | |align="right"| {{JULIANDAY/sandbox|1858|11|17|0}} | ||
|align="right"| 0 | |align="right"| 0 | ||
Line 265: | Line 265: | ||
|align="right"| 678575 | |align="right"| 678575 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1895</code>|<code>02</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1895|02|28|0}} | |align="right"| {{JULIANDAY/sandbox|1895|02|28|0}} | ||
|align="right"| 13252 | |align="right"| 13252 | ||
Line 271: | Line 271: | ||
|align="right"| 691827 | |align="right"| 691827 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1895</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1895|03|01|0}} | |align="right"| {{JULIANDAY/sandbox|1895|03|01|0}} | ||
|align="right"| 13253 | |align="right"| 13253 | ||
Line 277: | Line 277: | ||
|align="right"| 691828 | |align="right"| 691828 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1896</code>|<code>02</code>|<code>29</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1896|02|29|0}} | |align="right"| {{JULIANDAY/sandbox|1896|02|29|0}} | ||
|align="right"| 13618 | |align="right"| 13618 | ||
Line 283: | Line 283: | ||
|align="right"| 692193 | |align="right"| 692193 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1896</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1896|03|01|0}} | |align="right"| {{JULIANDAY/sandbox|1896|03|01|0}} | ||
|align="right"| 13619 | |align="right"| 13619 | ||
Line 289: | Line 289: | ||
|align="right"| 692194 | |align="right"| 692194 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1900|02|28|0}} | |align="right"| {{JULIANDAY/sandbox|1900|02|28|0}} | ||
|align="right"| 15078 | |align="right"| 15078 | ||
Line 295: | Line 295: | ||
|align="right"| 693653 | |align="right"| 693653 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1900</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1900|03|01|0}} | |align="right"| {{JULIANDAY/sandbox|1900|03|01|0}} | ||
|align="right"| 15079 | |align="right"| 15079 | ||
Line 301: | Line 301: | ||
|align="right"| 693654 | |align="right"| 693654 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>1970</code>|<code>01</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|1970|01|01|0}} | |align="right"| {{JULIANDAY/sandbox|1970|01|01|0}} | ||
|align="right"| 40587 | |align="right"| 40587 | ||
Line 307: | Line 307: | ||
|align="right"| 719162 | |align="right"| 719162 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>29</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|2000|02|29|0}} | |align="right"| {{JULIANDAY/sandbox|2000|02|29|0}} | ||
|align="right"| 51603 | |align="right"| 51603 | ||
Line 313: | Line 313: | ||
|align="right"| 730178 | |align="right"| 730178 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>2000</code>|<code>03</code>|<code>01</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|2000|03|01|0}} | |align="right"| {{JULIANDAY/sandbox|2000|03|01|0}} | ||
|align="right"| 51604 | |align="right"| 51604 | ||
Line 319: | Line 319: | ||
|align="right"| 730179 | |align="right"| 730179 | ||
|- | |- | ||
− | || {{Tlx|JULIANDAY|< | + | || {{Tlx|JULIANDAY|<code>2738</code>|<code>11</code>|<code>28</code><code>|0</code>}} = |
|align="right"| {{JULIANDAY/sandbox|2738|11|28|0}} | |align="right"| {{JULIANDAY/sandbox|2738|11|28|0}} | ||
|align="right"| 321424 | |align="right"| 321424 | ||
Line 327: | Line 327: | ||
;Examples adapted from {{Ltsmeta|YMD2MJD}}: | ;Examples adapted from {{Ltsmeta|YMD2MJD}}: | ||
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>28</code>}} = {{JULIANDAY/sandbox|1900|02|28}}, last day of February 1900 |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>29</code>|fix=on}} = {{JULIANDAY/sandbox|1900|02|29|fix=on}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>03</code>|<code>01</code>}} = {{JULIANDAY/sandbox|1900|03|01}}, no leap year |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|<code>30</code>|fix=on}} = {{JULIANDAY/sandbox|1900|02|30|fix=on}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>03</code>|<code>02</code>}} = {{JULIANDAY/sandbox|1900|03|02}} |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>29</code>}} = {{JULIANDAY/sandbox|2000|02|29}}, last day of February 2000 |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>30</code>|fix=on}} = {{JULIANDAY/sandbox|2000|02|30|fix=on}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>03</code>|<code>01</code>}} = {{JULIANDAY/sandbox|2000|03|01}}, leap year |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>02</code>|<code>31</code>|fix=on}} = {{JULIANDAY/sandbox|2000|02|31|fix=on}}, bogey but okay |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>2000</code>|<code>03</code>|<code>02</code>}} = {{JULIANDAY/sandbox|2000|03|02}} |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>{{CURRENTYEAR}}</code>|<code>{{CURRENTMONTH}}</code>|<code>{{CURRENTDAY2}}</code>}} = {{JULIANDAY/sandbox|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}} |
;Added in 2018 | ;Added in 2018 | ||
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>}} = {{JULIANDAY|1900|02}}, should work |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|<code>02</code>|partial=on}} = {{JULIANDAY/sandbox|1900|02|partial=on}}, should work |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>}} = {{JULIANDAY|1900}}, just year |
− | :{{Tlx|JULIANDAY|< | + | :{{Tlx|JULIANDAY|<code>1900</code>|partial=on}} = {{JULIANDAY/sandbox|1900|partial=on}}, just year |
<!-- | <!-- |
Latest revision as of 22:22, 4 June 2020
![]() | This is the template test cases page for the sandbox of Template:JULIANDAY. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Live template
- Adapted from m:Template talk:YMD2MJD
Code | Result | MJD | JD | REXX |
---|---|---|---|---|
{{JULIANDAY| =
|
1721119.5 | -678881 | 1721119.5 | -306 |
{{JULIANDAY| =
|
1721455.5 | -678545 | 1721455.5 | 30 |
{{JULIANDAY| =
|
1721456.5 | -678544 | 1721456.5 | 31 |
{{JULIANDAY| =
|
1721483.5 | -678517 | 1721483.5 | 58 |
{{JULIANDAY| =
|
1721484.5 | -678516 | 1721484.5 | 59 |
{{JULIANDAY| =
|
1721667.5 | -678333 | 1721667.5 | 242 |
{{JULIANDAY| =
|
1721668.5 | -678332 | 1721668.5 | 243 |
{{JULIANDAY| =
|
1722579.5 | -677421 | 1722579.5 | 1154 |
{{JULIANDAY| =
|
1722580.5 | -677420 | 1722580.5 | 1155 |
{{JULIANDAY| =
|
2180960.5 | -219040 | 2180960.5 | 459535 |
{{JULIANDAY| =
|
2275130.5 | -124870 | 2275130.5 | 553705 |
{{JULIANDAY| =
|
2299160.5 | -100840 | 2299160.5 | 577735 |
{{JULIANDAY| =
|
2361221.5 | -38779 | 2361221.5 | 639796 |
{{JULIANDAY| =
|
2400000.5 | 0 | 2400000.5 | 678575 |
{{JULIANDAY| =
|
2413252.5 | 13252 | 2413252.5 | 691827 |
{{JULIANDAY| =
|
2413253.5 | 13253 | 2413253.5 | 691828 |
{{JULIANDAY| =
|
2413618.5 | 13618 | 2413618.5 | 692193 |
{{JULIANDAY| =
|
2413619.5 | 13619 | 2413619.5 | 692194 |
{{JULIANDAY| =
|
2415078.5 | 15078 | 2415078.5 | 693653 |
{{JULIANDAY| =
|
2415079.5 | 15079 | 2415079.5 | 693654 |
{{JULIANDAY| =
|
2440587.5 | 40587 | 2440587.5 | 719162 |
{{JULIANDAY| =
|
2451603.5 | 51603 | 2451603.5 | 730178 |
{{JULIANDAY| =
|
2451604.5 | 51604 | 2451604.5 | 730179 |
{{JULIANDAY| =
|
2721424.5 | 321424 | 2721424.5 | 999999 |
- Examples adapted from Template:YMD2MJD Template:Toolbar at Meta:
{{JULIANDAY|
= 2415079, last day of February 19001900
|02
|28
}}{{JULIANDAY|
= 2415080, bogey but okay1900
|02
|29
}}{{JULIANDAY|
= 2415080, no leap year1900
|03
|01
}}{{JULIANDAY|
= 2415081, bogey but okay1900
|02
|30
}}{{JULIANDAY|
= 24150811900
|03
|02
}}{{JULIANDAY|
= 2451604, last day of February 20002000
|02
|29
}}{{JULIANDAY|
= 2451605, bogey but okay2000
|02
|30
}}{{JULIANDAY|
= 2451605, leap year2000
|03
|01
}}{{JULIANDAY|
= 2451606, bogey but okay2000
|02
|31
}}{{JULIANDAY|
= 24516062000
|03
|02
}}{{JULIANDAY|
= 24609242025
|09
|05
}}
Sandbox
- Adapted from m:Template talk:YMD2MJD
Code | Result | MJD | JD | REXX |
---|---|---|---|---|
{{JULIANDAY| =
|
1721119.5 | -678881 | 1721119.5 | -306 |
{{JULIANDAY| =
|
1721455.5 | -678545 | 1721455.5 | 30 |
{{JULIANDAY| =
|
1721456.5 | -678544 | 1721456.5 | 31 |
{{JULIANDAY| =
|
1721483.5 | -678517 | 1721483.5 | 58 |
{{JULIANDAY| =
|
1721484.5 | -678516 | 1721484.5 | 59 |
{{JULIANDAY| =
|
1721667.5 | -678333 | 1721667.5 | 242 |
{{JULIANDAY| =
|
1721668.5 | -678332 | 1721668.5 | 243 |
{{JULIANDAY| =
|
1722579.5 | -677421 | 1722579.5 | 1154 |
{{JULIANDAY| =
|
1722580.5 | -677420 | 1722580.5 | 1155 |
{{JULIANDAY| =
|
2180960.5 | -219040 | 2180960.5 | 459535 |
{{JULIANDAY| =
|
2275130.5 | -124870 | 2275130.5 | 553705 |
{{JULIANDAY| =
|
2299160.5 | -100840 | 2299160.5 | 577735 |
{{JULIANDAY| =
|
2361221.5 | -38779 | 2361221.5 | 639796 |
{{JULIANDAY| =
|
2400000.5 | 0 | 2400000.5 | 678575 |
{{JULIANDAY| =
|
2413252.5 | 13252 | 2413252.5 | 691827 |
{{JULIANDAY| =
|
2413253.5 | 13253 | 2413253.5 | 691828 |
{{JULIANDAY| =
|
2413618.5 | 13618 | 2413618.5 | 692193 |
{{JULIANDAY| =
|
2413619.5 | 13619 | 2413619.5 | 692194 |
{{JULIANDAY| =
|
2415078.5 | 15078 | 2415078.5 | 693653 |
{{JULIANDAY| =
|
2415079.5 | 15079 | 2415079.5 | 693654 |
{{JULIANDAY| =
|
2440587.5 | 40587 | 2440587.5 | 719162 |
{{JULIANDAY| =
|
2451603.5 | 51603 | 2451603.5 | 730178 |
{{JULIANDAY| =
|
2451604.5 | 51604 | 2451604.5 | 730179 |
{{JULIANDAY| =
|
2721424.5 | 321424 | 2721424.5 | 999999 |
- Examples adapted from Template:YMD2MJD Template:Toolbar at Meta:
{{JULIANDAY|
= 2415079, last day of February 19001900
|02
|28
}}{{JULIANDAY|
= Error: Need valid year|month|day or "currentdate", bogey but okay1900
|02
|29
}}{{JULIANDAY|
= 2415080, no leap year1900
|03
|01
}}{{JULIANDAY|
= Error: Need valid year|month|day or "currentdate", bogey but okay1900
|02
|30
}}{{JULIANDAY|
= 24150811900
|03
|02
}}{{JULIANDAY|
= 2451604, last day of February 20002000
|02
|29
}}{{JULIANDAY|
= Error: Need valid year|month|day or "currentdate", bogey but okay2000
|02
|30
}}{{JULIANDAY|
= 2451605, leap year2000
|03
|01
}}{{JULIANDAY|
= Error: Need valid year|month|day or "currentdate", bogey but okay2000
|02
|31
}}{{JULIANDAY|
= 24516062000
|03
|02
}}{{JULIANDAY|
= 24609242025
|09
|05
}}
- Added in 2018
{{JULIANDAY|
= 2415052, should work1900
|02
}}{{JULIANDAY|
= Error: Need valid year|month|day or "currentdate", should work1900
|02
}}
{{JULIANDAY|
= 2415021, just year1900
}}{{JULIANDAY|
= Error: Need valid year|month|day or "currentdate", just year1900
}}