Difference between revisions of "User:Tjtrumpet2323/sandbox"

From Geohashing
imported>Tjtrumpet2323
(MediaWiki Implementation Tests)
imported>Tjtrumpet2323
(MediaWiki Implementation Tests)
Line 19: Line 19:
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}}</nowiki>
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}}
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}}
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1|1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1|1}}
 
 
|-
 
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}}</nowiki>
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}}
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}}
 
|-
 
|-
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2|1}}</nowiki>
+
| <nowiki>{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1|1}} round 7}}</nowiki>
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2|1}}
+
| {{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1|1}} round 7}}
 +
|-
 +
| <nowiki>{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2|1}} round 7}}</nowiki>
 +
| {{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2|1}} round 7}}
 
|-
 
|-
 
! 30W Code !! 30W Output
 
! 30W Code !! 30W Output
Line 36: Line 36:
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}}</nowiki>
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}}
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}}
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1|1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1|1}}
 
 
|-
 
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}}</nowiki>
 
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}}
 
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}}
 
|-
 
|-
| <nowiki>{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2|1}}</nowiki>
+
| <nowiki>{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1|1}} round 7}}</nowiki>
| {{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2|1}}
+
| {{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1|1}} round 7}}
|-
 
! Curiousity !! Curious Output
 
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|2008-07-01}}-{{#dow:2008|07|01}} |1|1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|2008-07-01}}-{{#dow:2008|07|01}} |1|1}}
 
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|2008-07-01}}-{{#dow:2008|07|01}} |2|1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|2008-07-01}}-{{#dow:2008|07|01}} |2|1}}
 
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|2008-06-29}}-{{#dow:2008|06|29}} |1|1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|2008-06-29}}-{{#dow:2008|06|29}} |1|1}}
 
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|2008-06-29}}-{{#dow:2008|06|29}} |2|1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|2008-06-29}}-{{#dow:2008|06|29}} |2|1}}
 
|-
 
| <nowiki>{{#md5:{{#time: Y-m-d|2008-05-31}}-{{#dow:2008|05|31}} |1|1}}</nowiki>
 
| {{#md5:{{#time: Y-m-d|2008-05-31}}-{{#dow:2008|05|31}} |1|1}}
 
 
|-
 
|-
| <nowiki>{{#md5:{{#time: Y-m-d|2008-05-31}}-{{#dow:2008|05|31}} |2|1}}</nowiki>
+
| <nowiki>{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2|1}} round 7}}</nowiki>
| {{#md5:{{#time: Y-m-d|2008-05-31}}-{{#dow:2008|05|31}} |2|1}}
+
| {{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2|1}} round 7}}
 
|}
 
|}

Revision as of 02:07, 2 July 2008

My sandbox

MediaWiki Implementation Tests

Code Output
{{#vardefine: date|2008-06-02}}
{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} 12637.67
Non-30W Code Non-30W Output
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} }} 8270533fadd0ebc98586ffef3f2aec71
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1}} 8270533fadd0ebc
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2}} 8586ffef3f2aec7
{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |1|1}} round 7}} 0.5095264
{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |2|1}} round 7}} 0.5215912
30W Code 30W Output
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} }} 62cb96136645c03c077f811ce29c0504
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1}} 62cb96136645c03
{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2}} 077f811ce29c050
{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |1|1}} round 7}} 0.385919
{{#expr:{{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}} -1 day}}|{{#time: m|{{#var:date}} -1 day}}|{{#time: d|{{#var:date}} -1 day}}}} |2|1}} round 7}} 0.0292893