use Time::Piece; localtime()->strptime(@ARGV[0], "%Y-%m");