Dear All, I am new to Python I want to know how to change a time into timestamp eg "Fri, 8 Apr 2005 09:22:14 +0900" like format date I want to change as a timestamp.
I have used below code to get timestamp import time time.strptime(v,'%a, %d %b %Y %X +0900') function. This function will return time stamp. But If the format of date string is changed. This function raise error eg My web application always return different format of date Fri, 8 Apr 2005 10:31:37 +0530 Fri, 8 Apr 2005 10:11:03 +0900 Fri, 8 Apr 2005 09:40:47 +0800 Kindly help to resolve this problem. with regards, Prabahar ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- http://mail.python.org/mailman/listinfo/python-list