Difference between revisions of "RatingsGraph/FindDateRange/Cargo"
From Sega Retro
(Created page with "{{#vardefine:currentdate|{{MagazineName|{{{1|}}}|{{{2|}}}|nomagname=yes|noissuename=yes}}}}{{#ifeq:{{#len:{{#var:currentdate}}}}|10|{{ #ifexpr:{{#var:currentdate}}<{{#var:lowe...") |
|||
Line 1: | Line 1: | ||
− | {{#vardefine:currentdate|{{MagazineName|{{{1|}}}|{{{2|}}}|nomagname=yes|noissuename=yes}}}}{{#ifeq:{{#len:{{#var:currentdate}}}}|10|{{ | + | {{#vardefine:lowestdate|{{CURRENTYEAR}}-01-01}} |
− | #ifexpr:{{#var:currentdate}}<{{#var:lowestdate}}|{{#vardefine:lowestdate|{{#var:currentdate}}}}|}}{{ | + | {{#time:U|{{#var:lowestdate}}}} |
− | #ifexpr:{{#var:currentdate}}>{{#var:highestdate}}|{{#vardefine:highestdate|{{#var:currentdate}}}}|}}|}}<noinclude>[[Category:Templates]]</noinclude> | + | |
+ | {{#vardefine:currentdate|{{MagazineName|{{{1|}}}|{{{2|}}}|nomagname=yes|noissuename=yes}}}}{{ | ||
+ | #ifeq:{{#len:{{#var:currentdate}}}}|10|{{ | ||
+ | #ifeq:{{#len:{{#time:U|{{#var:currentdate}}}}}}|9|{{ | ||
+ | #ifexpr:{{#time:U|{{#var:currentdate}}}}<{{#time:U|{{#var:lowestdate}}}}| | ||
+ | *NEW LOW: {{#time:U|{{#var:currentdate}}}}<{{#time:U|{{#var:lowestdate}}}} = {{#vardefine:lowestdate|{{#var:currentdate}}}} {{#var:lowestdate}} |}}{{ | ||
+ | #ifexpr:{{#time:U|{{#var:currentdate}}}}>{{#time:U|{{#var:highestdate}}}}|{{#vardefine:highestdate|{{#var:currentdate}}}}|}} | ||
+ | *{{{1|}}}, {{{2|}}} -> {{#var:currentdate}} -> {{#len:{{#time:U|{{#var:currentdate}}}}}} | ||
+ | |}}|}} | ||
+ | <noinclude>[[Category:Templates]] | ||
+ | |||
+ | |||
+ | {{#vardefine:name|Daytona USA}} | ||
+ | {{#vardefine:format|SAT}} | ||
+ | {{RatingsGraph/FindDateRange}} | ||
+ | *{{#var:lowestdate}} | ||
+ | *{{#var:highestdate}}</noinclude> |
Revision as of 17:57, 2 March 2024
1704067200
- 2024-01-01
- 1996-12-29