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 2008-12-03 Wed

 {(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
 2008-11-26
 2007-08-14
 2007-08-14
 2007-08-14
 2007-04-11

 2007-01-24
 2007-01-24
 1969-12-31 ?today +1
 2008-12-04 ?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
 1228349179
 -1
 -1
 2007-08-14
 {(ftime News-20070501)}
 May 01, 2007, at 12:00 AM
 {(ftime MarchingOrders2007)}
 December 31, 1969, at 05:59 PM
 {(ftime 1177600111)}
 December 31, 1969, at 05:59 PM
 {(ftime %s)}
 1228349179
 {(ftime @1177600111)}
 April 26, 2007, at 10:08 AM

Testing relative GNU date input formats

Today is 2008-12-03 Wed

? 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")}
 2008 Dec 08 Mon
 2008 Dec 16 Tue
 2008 Dec 17 Wed
 2008 Dec 25 Thu ?

 2008 Dec 06 Sat
 2008 Dec 13 Sat
 2008 Dec 20 Sat
 2008 Dec 27 Sat 

 2008 Dec 09 Tue
 2008 Dec 02 Tue
 2008 Dec 09 Tue
 2008 Dec 09 Tue ?
 2008 Dec 04 Thu

 2008 Nov 26 Wed
 2008 Dec 03 Wed
 2008 Dec 10 Wed
 {(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")}
 2008 Nov 03 Mon ?
 2008 Dec 03 Wed
 2009 Jan 03 Sat

 1969 Dec 31 Wed ?
 2008 May 30 Fri ?
 2008 May 31 Sat ?
 2008 Jun 01 Sun ?
 2008 Jul 30 Wed ?
 2008 Jul 31 Thu ?
 2008 Aug 01 Fri ?
 1969 Dec 31 Wed ?
 2008 Sep 29 Mon ?
 2008 Sep 30 Tue ?
 2008 Oct 01 Wed ?

 2007 Dec 03 Mon
 2008 Dec 03 Wed
 2009 Dec 03 Thu
 {(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")} ?
 2008 Dec 17 Wed
 2008 Dec 03 Wed ?
 1969 Dec 31 Wed ?
 2008 Aug 03 Sun ?
 1969 Dec 31 Wed ?

 2008 Jul 31 Thu ?
 2003 Jul 31 Thu ?
 2009 Jul 31 Fri ?
 2009 Jul 31 Fri ?
 2008 Aug 03 Sun ?
 1969 Dec 31 Wed ?
Edit - History - Print - Recent Changes - Search
Page last modified on July 31, 2008, at 03:55 PM
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.09 00.07 MarkupToHTML begin
 3: 00.09 00.07 MarkupToHTML begin
 4: 00.10 00.08 MarkupToHTML end
 5: 00.10 00.08 MarkupToHTML begin
 6: 00.11 00.09 MarkupToHTML end
 7: 00.11 00.09 MarkupToHTML begin
 8: 00.11 00.09 MarkupToHTML end
 9: 00.11 00.09 MarkupToHTML begin
10: 00.11 00.09 MarkupToHTML end
11: 00.11 00.09 MarkupToHTML begin
12: 00.12 00.10 MarkupToHTML end
13: 00.12 00.10 MarkupToHTML begin
14: 00.12 00.10 MarkupToHTML end
15: 00.12 00.10 MarkupToHTML begin
16: 00.12 00.10 MarkupToHTML end
17: 00.12 00.10 MarkupToHTML begin
18: 00.14 00.12 MarkupToHTML end
19: 00.14 00.12 MarkupToHTML begin
20: 00.16 00.14 MarkupToHTML end
21: 00.16 00.14 MarkupToHTML begin
22: 00.17 00.15 MarkupToHTML end
23: 00.20 00.18 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
24: 00.21 00.18 ReadApprovedUrls SiteAdmin.ApprovedUrls end
25: 00.22 00.19 MarkupToHTML end
26: 00.23 00.21 MarkupToHTML begin
27: 00.27 00.25 MarkupToHTML end
28: 00.27 00.25 MarkupToHTML begin
29: 00.29 00.26 MarkupToHTML end
30: 00.37 00.27 now