Test /
DateMgtAndConditionals
Test Markup expressions and Conditional markup
pmwiki version:
- pmwiki-2.3.38
Formatting ISO dates with ftime works perfectly:
* Year: {(ftime %Y 20071022T115732)} * Month: {(ftime %m 20071022T115732)} * Day: {(ftime %d 20071022T115732)} * Hours: {(ftime %H 20071022T115732)} * Minutes: {(ftime %M 20071022T115732)} * Seconds: {(ftime %S 20071022T115732)} * Week: {(ftime %W 20071022T115732)} |
|
Conditionals:
* Now: {(ftime now %Y%m%d)}T{(ftime now %H%M%S)} (:if date 20071022T1157 20071022T1158:)* Test 1(:ifend:) (:if date 20071022T1158 20071022T1157:)* Test 2(:ifend:) (:if date 20071022T0501..:)* Test 3(:ifend:) (:if date 20071022T1200..:)* Test 4(:ifend:) (:if date 20071022T0501..20071022T0505:)* Test 5(:ifend:) |
|