Show Current time in Python

  • STK-S4 board
    GE863-GPS module.

    How can I get and show current time in Python language.

    Here is my code, but I can't get those date and time. Please help me to see anything wrong why I can't get date and time?

    Thanks a lot!

    import time

    # I'd like to get date1 like as '270811'
    date1 = time.strftime ("%d%m%y", time.location())

    # I'd like to get time1 like as '110300'
    time1 = time.strftime ("%H%M%S", time.location())