Amit Khemka khemkaamit at gmail.com writes:
Check out timegm function in calendar module. The following function
converts mm/dd/ formats into epoch value, you can hack it for
your date formats.
def convertToEpoch(date):
tup = map(int,date.split('/'))
l = (tup[2],
Stefan Antonelli wrote:
Amit Khemka khemkaamit at gmail.com writes:
Check out timegm function in calendar module. The following function
converts mm/dd/ formats into epoch value, you can hack it for
your date formats.
def convertToEpoch(date):
tup =
Hi,
i have to convert several timestamps. The given format, eg -mm-dd hh:mm:ss
has to be converted to an epoch string. Is there any proper way to do this?
If not, i have to split the given string and resolve this by a calculation?
Thanks for help.
Stefan.
--
Stefan Antonelli wrote:
Hi,
i have to convert several timestamps. The given format, eg -mm-dd
hh:mm:ss
has to be converted to an epoch string.
What is an epoch string?
Is there any proper way to do this?
If not, i have to split the given string and resolve this by a calculation?
Stefan Antonelli wrote:
Hi,
i have to convert several timestamps. The given format, eg -mm-dd
hh:mm:ss
has to be converted to an epoch string. Is there any proper way to do this?
If not, i have to split the given string and resolve this by a calculation?
Thanks for help.
On 12/16/06, Stefan Antonelli [EMAIL PROTECTED] wrote:
Hi,
i have to convert several timestamps. The given format, eg -mm-dd
hh:mm:ss
has to be converted to an epoch string. Is there any proper way to do this?
If not, i have to split the given string and resolve this by a calculation?