BTW, I thought that math was going to be added to the core.
Also, I am growing to like <markup></markup> tags... Makes diagnostics
easier to see...
<markup>
1 [(time {now} "%Y")]
2 [(math "2009 - 1984" )]
3 <(time {now} "%Y")>
4 [(math '{(time {now} "%Y")} - 1984' )]
5 [(math "{(time {now} '%Y')} - 1984" )]
</markup>
On Tue, Oct 20, 2009 at 1:55 AM, Kevin <[email protected]> wrote:
> Thought I had tried them all... However...
>
> This one works...
>
> [(math '{(time {now} "%Y")} - 1984' )]
>
> So does this one...
>
> [(math "{(time {now} '%Y')} - 1984" )]
>
> Switching around the single and double quotes. Attempting to escape them
> does not work.
>
> Of course I'm used to...
>
> <?php echo date("Y") - 1984 ?>
>
> Thanks BTW Martin, got me to try some other options.
>
> Hmmm... not thinking of the ramifications or even if it were feasible,
> security etc... what about a php pass through...
>
> <php>echo date("Y") - 1984</php>
>
>
>
> On Tue, Oct 20, 2009 at 1:27 AM, Martin <[email protected]> wrote:
>
>>
>> I do not think that a double [( will work. Try {( or <( for the math
>> or the time function.
>>
>> I do not have math installed, therefore I could not check it out.
>>
>> Greetings, Martin
>>
>> On Oct 20, 8:31 am, Kevin <[email protected]> wrote:
>> > Take the current year and subtract the starting year to output the total
>> > years since it started...
>> >
>> > Current year...
>> >
>> > [(time {now} "%Y")] = 2009
>> >
>> > Try raw numbers...
>> >
>> > [(math "2009 - 1984" )] = 25
>> >
>> > So I figured...
>> >
>> > [(math "[(time {now} "%Y")] - 1984" )] = 25 ??
>> >
>> > Nope... = - 1984" )]
>> >
>> > Tried a number of different syntax.
>> >
>> > This is with 3.2.7
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---