set_date


Description:

public void set_date (long date, int offset)

Set the date on a message.

In most cases, this is used to set the current date:

camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0);

Parameters:

this

a MimeMessage object

date

a time_t date or camel_message_date_current to use the current local date and time

offset

an offset from UTC in decimal number using the +HHMM format (for instance an offset of -10:45 is -1045). If date set to camel_message_date_current, this parameter is ignored