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.

Ftime

Testing the MarkupExpression ftime

Testing the MarkupExpression ftime

Today is 2012-02-09 Thu

 {(ftime %F -7days)}
 {(ftime %F when="2007-08-14 -1days")}
 {(ftime %F when="2007-08-14 -1 days")}
 {(ftime %F when="2007-08-14 -1 day")}
 {(ftime %F "2007-04-11 -4 days")}

 {(ftime %F when="2007-01-24 +1 day")}
 {(ftime %F when="2007-01-24 +1day")}
 {(ftime %F +1 day)} ?today +1
 {(ftime %F +1day)} ?today +1
 2012-02-02
 2007-08-14
 2007-08-14
 2007-08-14
 2007-04-11

 2007-01-24
 2007-01-24
 2012-02-08 ?today +1
 2012-02-10 ?today +1
 {(ftime when=" ")}
 {(ftime %s)}
 {(ftime %s " ")}
 {(ftime %s when="")}
 {(ftime fmt=%F when="2007-08-14
-1days")}
 December 31, 1969, at 05:59 PM
 1328787161
 -1
 -1
 2007-08-14
 {(ftime News-20070501)}
 May 01, 2007, at 12:00 AM
 {(ftime MarchingOrders2007)}
 December 31, 1969, at 06:00 PM
 {(ftime 1177600111)}
 December 31, 1969, at 06:00 PM
 {(ftime %s)}
 1328787161
 {(ftime @1177600111)}
 April 26, 2007, at 10:08 AM

Testing relative GNU date input formats

Today is 2012-02-09 Thu

? marks an unsatisfactory result
 {(ftime "%Y %b %d %a" "1 mon")}
 {(ftime "%Y %b %d %a" "2 tue")}
 {(ftime "%Y %b %d %a" "3 wed")}
 {(ftime "%Y %b %d %a" "4 thu")} ?

 {(ftime "%Y %b %d %a" "1 sat")}
 {(ftime "%Y %b %d %a" "2 sat")}
 {(ftime "%Y %b %d %a" "3 sat")}
 {(ftime "%Y %b %d %a" "4 sat")} 

 {(ftime "%Y %b %d %a" "tuesday")}
 {(ftime "%Y %b %d %a" "last tue")}
 {(ftime "%Y %b %d %a" "this tue")}
 {(ftime "%Y %b %d %a" "next tue")} ?
 {(ftime "%Y %b %d %a" "thursday")}

 {(ftime "%Y %b %d %a" "last week")}
 {(ftime "%Y %b %d %a" "this week")}
 {(ftime "%Y %b %d %a" "next week")}
 2012 Feb 13 Mon
 2012 Feb 21 Tue
 2012 Feb 29 Wed
 2012 Mar 01 Thu ?

 2012 Feb 11 Sat
 2012 Feb 18 Sat
 2012 Feb 25 Sat
 2012 Mar 03 Sat 

 2012 Feb 14 Tue
 2012 Feb 07 Tue
 2012 Feb 14 Tue
 2012 Feb 14 Tue ?
 2012 Feb 09 Thu

 2012 Feb 02 Thu
 2012 Feb 09 Thu
 2012 Feb 16 Thu
 {(ftime "%Y %b %d %a" "last month")} ?
 {(ftime "%Y %b %d %a" "this month")}
 {(ftime "%Y %b %d %a" "next month")}

 {(ftime "%Y %b %d %a" "June")} ?
 {(ftime "%Y %b %d %a" "last June")} ?
 {(ftime "%Y %b %d %a" "this June")} ?
 {(ftime "%Y %b %d %a" "next June")} ?
 {(ftime "%Y %b %d %a" "last Aug")} ?
 {(ftime "%Y %b %d %a" "this Aug")} ?
 {(ftime "%Y %b %d %a" "next Aug")} ?
 {(ftime "%Y %b %d %a" "October")} ?
 {(ftime "%Y %b %d %a" "last Oct")} ?
 {(ftime "%Y %b %d %a" "this Oct")} ?
 {(ftime "%Y %b %d %a" "next Oct")} ?

 {(ftime "%Y %b %d %a" "last year")}
 {(ftime "%Y %b %d %a" "this year")}
 {(ftime "%Y %b %d %a" "next year")}
 2012 Jan 09 Mon ?
 2012 Feb 09 Thu
 2012 Mar 09 Fri

 2012 Jun 09 Sat ?
 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?
 2012 Oct 09 Tue ?
 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?

 2011 Feb 09 Wed
 2012 Feb 09 Thu
 2013 Feb 09 Sat
 {(ftime "%Y %b %d %a" "3 wed")}
 {(ftime "%Y %b %d %a" "wed 3")} ?
 {(ftime "%Y %b %d %a" "3 wed aug")} ?
 {(ftime "%Y %b %d %a" "aug 3 wed")} ?
 {(ftime "%Y %b %d %a" "aug wed 3")} ?

 {(ftime "%Y %b %d %a" "3 wed this
aug")} ?
 {(ftime "%Y %b %d %a" "this aug 3
wed")} ?
 {(ftime "%Y %b %d %a" "3 wed aug this
year")} ?
 {(ftime "%Y %b %d %a" "aug this year 3
wed")} ?
 {(ftime "%Y %b %d %a" "this year aug 3
wed")} ?
 {(ftime "%Y %b %d %a" "this year aug
wed 3")} ?
 2012 Feb 29 Wed
 1969 Dec 31 Wed ?
 2012 Aug 29 Wed ?
 2012 Aug 08 Wed ?
 1969 Dec 31 Wed ?

 1969 Dec 31 Wed ?
 1969 Dec 31 Wed ?
 2012 Aug 29 Wed ?
 2012 Aug 29 Wed ?
 2012 Aug 08 Wed ?
 1969 Dec 31 Wed ?
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.09 00.05 MarkupToHTML begin
 3: 00.09 00.05 MarkupToHTML begin
 4: 00.11 00.06 MarkupToHTML end
 5: 00.11 00.06 MarkupToHTML begin
 6: 00.11 00.07 MarkupToHTML end
 7: 00.11 00.07 MarkupToHTML begin
 8: 00.11 00.07 MarkupToHTML end
 9: 00.11 00.07 MarkupToHTML begin
10: 00.12 00.07 MarkupToHTML end
11: 00.12 00.07 MarkupToHTML begin
12: 00.12 00.07 MarkupToHTML end
13: 00.12 00.08 MarkupToHTML begin
14: 00.12 00.08 MarkupToHTML end
15: 00.12 00.08 MarkupToHTML begin
16: 00.12 00.08 MarkupToHTML end
17: 00.12 00.08 MarkupToHTML begin
18: 00.14 00.09 MarkupToHTML end
19: 00.14 00.09 MarkupToHTML begin
20: 00.15 00.11 MarkupToHTML end
21: 00.16 00.11 MarkupToHTML begin
22: 00.17 00.12 MarkupToHTML end
23: 00.19 00.14 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
24: 00.20 00.16 ReadApprovedUrls SiteAdmin.ApprovedUrls end
25: 00.22 00.17 MarkupToHTML end
26: 00.23 00.18 MarkupToHTML begin
27: 00.26 00.21 MarkupToHTML end
28: 00.26 00.22 MarkupToHTML begin
29: 00.27 00.23 MarkupToHTML end
30: 00.28 00.23 now