how to change date and time to int

I need to change a date and time from a .txt file in the form of str, then divide it in terms of year, month, day, hours, minutes and seconds, then turn them all into int, and finally turn them all into seconds. but I need to use itime and struct tm..... does anyone know how to do this???

example:

from 21012015 17:14:26
(format DDMMYYYY hh:mm:ss)

thank you~
Topic archived. No new replies allowed.