kernel/write.c
/*
 * Write the datetime to the file
 */
Write the datetime to the file
Write the datetime to the file
void datetime_writer(lxw_datetime *datetime, zend_long row, zend_long columns, zend_string *format, xls_resource_write_t *res, lxw_format *format_handle)
{
    lxw_format *value_format = workbook_add_format(res->workbook);
    if (format_handle != NULL) {
        format_copy(value_format, format_handle);
    }
    format_set_num_format(value_format, ZSTR_VAL(format));
    worksheet_write_datetime(res->worksheet, (lxw_row_t)row, (lxw_col_t)columns, datetime, value_format);
}
void datetime_writer ( lxw_datetime * datetime , zend_long row , zend_long columns , zend_string * format , xls_resource_write_t * res , lxw_format * format_handle ) { lxw_format * value_format = workbook_add_format ( res -> workbook ) ; if ( format_handle != NULL ) { format_copy ( value_format , format_handle ) ; } format_set_num_format ( value_format , ZSTR_VAL ( format ) ) ; worksheet_write_datetime ( res -> worksheet , ( lxw_row_t ) row , ( lxw_col_t ) columns , datetime , value_format ) ; }
Write the datetime to the file
Write the datetime to the file