Version 3.3.1.2

DateTimeFormatter class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class DateTimeFormatter : MinimalBaseFormatter<DateTime>, IFormatter<DateTime>, IFormatter
Custom formatter for the System.DateTime type.
Inheritance

Constructors

DateTimeFormatter()
public DateTimeFormatter()

Methods

Read(ref DateTime, IDataReader)
Reads into the specified value using the specified reader.
protected override void Read(ref DateTime value, IDataReader reader)
Parameters
System.DateTime value

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

Write(ref DateTime, IDataWriter)
Writes from the specified value using the specified writer.
protected override void Write(ref DateTime value, IDataWriter writer)
Parameters
System.DateTime value

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.