Difference between revisions of "Template:Coordinates/30Wadjusted/lonOnly"

From Geohashing
imported>Zb
(Undo revision 198057 by 218.201.21.179 (Talk) ... now this starts getting on my nerves just a tiny bit...)
(Fix 2012-02-26 (hopefully without breaking anything else))
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#var:londate}}||{{#vardefine:londate|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:londate}}|1970-01-01|{{#vardefine:londate|{{{1}}}}}|}}}}{{#vardefine: steps|{{#expr: ({{#md5:{{#time: Y-m-d|{{#var:londate}}}}-{{#dow:{{#time: Y|{{#var:londate}} -1 day}}|{{#time: m|{{#var:londate}} -1 day}}|{{#time: d|{{#var:londate}} -1 day}}}} |2|1}} round 7) * 10000000}}}}.{{padleft:{{#var:steps}}|7|0}}</includeonly>
+
<includeonly>{{#if:{{#var:londate}}||{{#vardefine:londate|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:londate}}|1970-01-01|{{#vardefine:londate|{{{1}}}}}|}}}}{{#vardefine: steps|{{#number_format:{{<!--number_format accepts "e" but not "E"-->lc:{{#md5:{{#time: Y-m-d|{{#var:londate}}}}-{{#dow:{{#time: Y|{{#var:londate}} -1 day}}|{{#time: m|{{#var:londate}} -1 day}}|{{#time: d|{{#var:londate}} -1 day}}}} |2|1}}}}|7|.}}}}{{#sub:{{#var:steps}}|1}}</includeonly>

Latest revision as of 10:09, 14 August 2020