Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 Today 12:30:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,037
Website GitHub

Re: Correct syntax for variable output multiple times

Yes, I’d forgotten about alias too, so seeing it in use here is a great reminder on its power. Thank you, Oleg!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#14 Today 12:36:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,037
Website GitHub

Re: Correct syntax for variable output multiple times

I also see that Oleg has updated his solution to include the leap year in a “dark” variable. That’s neat.

Does that also apply to the “light” one too, since the 80 days DST switchover is after Feb 29th? Or have I misunderstood the relevance of the 80/264? I haven’t fully grokked the solution.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#15 Today 14:01:13

etc
Developer
Registered: 2010-11-11
Posts: 5,533
Website GitHub

Re: Correct syntax for variable output multiple times

jakob wrote #341087:

how a programmer goes about it.

Thanks, but I’m just fond of conciseness, a true programmer would write 5 lines of comments per line of code :-)

Offline

#16 Today 14:07:33

etc
Developer
Registered: 2010-11-11
Posts: 5,533
Website GitHub

Re: Correct syntax for variable output multiple times

Bloke wrote #341089:

Does that also apply to the “light” one too, since the 80 days DST switchover is after Feb 29th? Or have I misunderstood the relevance of the 80/264? I haven’t fully grokked the solution.

I guess yes, if the switch always happens the March/September 21st. But I preferred to win one Light day. Or simply goofed :-)

Offline

Board footer

Powered by FluxBB