Easier way to get current year?
#4576 (In Topic #974)
That'll work but I'm sure there's a much more simpler way of achieving this. The copyright setting uses $CURRENT_YEAR but this doesn't seem to output anything when surrounding it in brackets and using within a Comcode page.
Here's the clean way:
See PHP's 'strftime' function for syntax.
$CURRENT_YEAR is not a real Tempcode symbol, it's something interpreted elsewhere within Composr.
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
1 guest and 0 members have just viewed this.