[pmwiki-users] Question about ftime?

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Sat Dec 29 15:31:26 CST 2007


Is it correct that
 	{(ftime "%Y" "-")}
should produce
 	2007

I'm actually looking for a way to extract the year from a page text 
variable that could look like this:

 	:Deceased: 2003-12-01 Stockholm

where the person died in 2003. Or like this

 	:Deceased: -

where the person is still alive, or possibly like this

 	:Deceased: ?

where it's unknown when the person died.

Ideas?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


More information about the pmwiki-users mailing list