Recent Changes - Search:

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

DateMgtAndConditionals

Test Markup expressions and Conditional markup
pmwiki version:

  • pmwiki-2.2.36

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)}
  • Year: 2007
  • Month: 10
  • Day: 22
  • Hours: 11
  • Minutes: 57
  • Seconds: 32
  • Week: 43

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:)
  • Now: 20120209T224508
  • Test 3
  • Test 4
Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.06 00.05 MarkupToHTML begin
 3: 00.07 00.05 MarkupToHTML begin
 4: 00.08 00.06 MarkupToHTML end
 5: 00.08 00.06 MarkupToHTML begin
 6: 00.08 00.07 MarkupToHTML end
 7: 00.10 00.08 MarkupToHTML end
 8: 00.10 00.09 MarkupToHTML begin
 9: 00.13 00.11 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
10: 00.14 00.12 ReadApprovedUrls SiteAdmin.ApprovedUrls end
11: 00.15 00.14 MarkupToHTML end
12: 00.15 00.14 MarkupToHTML begin
13: 00.16 00.15 MarkupToHTML end
14: 00.17 00.15 now