1

Python mkdir with named as strfttime

view story
linux-howto

http://ubuntuforums.org – Hello everyone. I need a little assistance on this matter, or any suggestions. Code: # import the follwoing modulars import datetime import sys import os # yyyy = date.today() # + '_' + (datetime.month) + '_' + (datetime.day) # print "The year is"  + yyyy + "!!!" now = datetime.datetime.now() # print current date as yyyy_mm_dd print "current time is: " + now.strftime("%Y_%m_%d-%H%M") # os.mkdir(now) raw_input("Press <enter> to continue:") I am trying to generate a folder, which has the current date/time stamp; however, I am (Hardware)