@param worksheet pointer to a lxw_worksheet instance to be updated.
@param row The zero indexed row number.
@param col The zero indexed column number.
@param datetime The datetime to write to the cell.
@param format A pointer to a Format instance or NULL.
@return A #lxw_error code.
The worksheet_write_datetime() function can be used to write a date or
time to the cell specified by row and column:
@dontinclude dates_and_times02.c
@skip include
@until num_format
@skip Feb
@until }
The format parameter should be used to apply formatting to the cell using
a @ref format.h "Format" object as shown above. Without a date format the
datetime will appear as a number only.
See @ref working_with_dates for more information about handling dates and
times in libxlsxwriter.
@brief Write a date or time to a worksheet cell.
@param worksheet pointer to a lxw_worksheet instance to be updated. @param row The zero indexed row number. @param col The zero indexed column number. @param datetime The datetime to write to the cell. @param format A pointer to a Format instance or NULL.
@return A #lxw_error code.
The worksheet_write_datetime() function can be used to write a date or time to the cell specified by row and column:
@dontinclude dates_and_times02.c @skip include @until num_format @skip Feb @until }
The format parameter should be used to apply formatting to the cell using a @ref format.h "Format" object as shown above. Without a date format the datetime will appear as a number only.
See @ref working_with_dates for more information about handling dates and times in libxlsxwriter.