Hi,
Probably, you can do it with [% USE Date %]. I'd follow: http://template-toolkit.org/docs/modules/Template/Plugin/Date.html there's written: The calc() method can be used to create an interface to the Date::Calc module. and then http://search.cpan.org/~stbey/Date-Calc-6.3/lib/Date/Calc.pod describes: $time = Mktime($year,$month,$day, $hour,$min,$sec); function as "This function converts a date into a time value, i.e., into the number of seconds since whatever moment in time your system considers to be the "epoch"." HTH Best regards, Petr -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of hemanth reddy Sent: Thursday, February 04, 2010 7:55 AM To: [email protected] Subject: [Templates] Date and Time Template tool kit Hi [% close_time="2000/12/21 4:20:36" %] how to covert close_time to number of seconds since epoch can i do it using [%USE Date%]?
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
