<s> from datetime import datetime <EOL> import xlsxwriter <EOL> workbook = xlsxwriter . Workbook ( '<STR_LIT>' ) <EOL> worksheet = workbook . add_worksheet ( ) <EOL> bold = workbook . add_format ( { '<STR_LIT>' : True } ) <EOL> worksheet . set_column ( '<STR_LIT>' , <NUM_LIT:30> ) <EOL> worksheet . write ( '<STR_LIT>' , '<STR_LIT>' , bold ) <EOL> worksheet . write ( '<STR_LIT>' , '<STR_LIT>' , bold ) <EOL> date_time = datetime . strptime ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> date_formats = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> row = <NUM_LIT:1> <EOL> for date_format_str in date_formats : <EOL> date_format = workbook . add_format ( { '<STR_LIT>' : date_format_str , <EOL> '<STR_LIT>' : '<STR_LIT:left>' } ) <EOL> worksheet . write_datetime ( row , <NUM_LIT:0> , date_time , date_format ) <EOL> worksheet . write_string ( row , <NUM_LIT:1> , date_format_str ) <EOL> row += <NUM_LIT:1> <EOL> workbook . close ( ) </s>
