I found a resolution to this and the date math issue I had been working off an on a little while back.
I tried the examples on this site "http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions-Sandbox" and found that I was not able to get the same results. But I got some real good hints. To correct for time zone: Today is {(ftime '' "+ 2 hours")} Local time (CST) And by trying %a-z and %A-Z with ftime I was able to farm out the components that would make the result look like the format that "date" likes. I was able to squeeze the stack of if-statements into this: /* * dateOfEntryYYMMDD is in the yyyymmdd format, * adding 6 to the month column */ (:Anniv6mo: {(ftime %Y%m%d "{$:dateOfEntryYYYYMMDD} +6 month")}:) Then I use: (:if:) blah blah (deleted rest of is and else ifs for brevity) (:elseif date {$:Anniv6mo}.. :) 6 Month Milestone (:ifend:) Pretty relieved. Had almost pulled the last of my hair! :) mk > Message: 4 > > Hi, > > ftime doesn't appear to be responding to fmt. I'd like to change the > output format and also make the output time reflect local time. The server > is apparently in PST and I'm in CST (PST + 2). > > If I execute the following...: > {(ftime)} > {(ftime fmt="%F %H:%M")} > {(ftime %Y)} > {(ftime fmt=%T)} > {(ftime when=tomorrow)} > {(ftime fmt="%Y-%m-%d" yesterday)} > {(ftime week %F)} > {(ftime fmt=%D month)} > {(ftime fmt="%a%e %b" when="next week")} > > I see: > December 28, 2007, at 06:58 AM > December 28, 2007, at 06:58 AM > 2007 > December 28, 2007, at 06:58 AM > December 28, 2007, at 06:58 AM > yesterday > week > month > December 28, 2007, at 06:58 AM > > I don't have server access but have been told that the MarkupExpressions > recipe is enabled. Any ideas? > > Thanks! > mk > > _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
