MailDateTime Class
Namespace: Rebex.Mime.Headers
Assembly: Rebex.Mail.dll (version 7.0.9313)
Represents the date/time and the time zone.
Syntax
public class MailDateTime : IHeader
Implements
Inherited Members
Remarks
Represents the date-time structured header defined by RFC 2822.
Constructors
| Name | Description |
|---|---|
| MailDateTime(DateTime) | Initializes a new instance of MailDateTime header value with the specified local DateTime. |
| MailDateTime(DateTime, TimeSpan) | Initializes a new instance of MailDateTime header value with the specified universal DateTime and a TimeZone. |
Properties
| Name | Description |
|---|---|
| LocalTime | Gets the local date/time. |
| OriginalTime | Gets the original date/time (local to TimeZone). |
| TimeZone | Gets the time zone. |
| UniversalTime | Gets the universal date/time. |
Methods
| Name | Description |
|---|---|
| Clone() | Creates a copy of the header. |
| Encode(TextWriter) | Writes an encoded header value into a TextWriter. |
| ToString() | Converts the value of this header to its String representation. |
Operators
| Name | Description |
|---|---|
| Implicit(DateTime to MailDateTime) | Converts a DateTime to a MailDateTime. |