C# Class Revenj.DatabasePersistence.Postgres.Converters.TimestampConverter

Show file Open project: ngs-doo/revenj

Public Methods

Method Description
FromDatabase ( string value ) : System.DateTime
Parse ( BufferedTextReader reader, int context ) : System.DateTime
ParseCollection ( BufferedTextReader reader, int context ) : List
ParseCollectionUtc ( BufferedTextReader reader, int context ) : List
ParseNullable ( BufferedTextReader reader, int context ) : DateTime?
ParseNullableCollection ( BufferedTextReader reader, int context ) : List
ParseNullableCollectionUtc ( BufferedTextReader reader, int context ) : List
ParseNullableUtc ( BufferedTextReader reader, int context ) : DateTime?
ParseUtc ( BufferedTextReader reader, int context ) : System.DateTime
Serialize ( System.DateTime value, char buffer, int pos, int hours ) : int
Serialize ( DateTimeOffset value, char buffer, int pos, int hours ) : int
ToDatabase ( System.DateTime value ) : string
ToDatabase ( DateTimeOffset value ) : string
ToTuple ( System.DateTime value ) : IPostgresTuple
ToTupleUtc ( System.DateTime value ) : IPostgresTuple

Private Methods

Method Description
ParseTimestampUtc ( BufferedTextReader reader, int context ) : System.DateTime

Method Details

FromDatabase() public static method

public static FromDatabase ( string value ) : System.DateTime
value string
return System.DateTime

Parse() public static method

public static Parse ( BufferedTextReader reader, int context ) : System.DateTime
reader BufferedTextReader
context int
return System.DateTime

ParseCollection() public static method

public static ParseCollection ( BufferedTextReader reader, int context ) : List
reader BufferedTextReader
context int
return List

ParseCollectionUtc() public static method

public static ParseCollectionUtc ( BufferedTextReader reader, int context ) : List
reader BufferedTextReader
context int
return List

ParseNullable() public static method

public static ParseNullable ( BufferedTextReader reader, int context ) : DateTime?
reader BufferedTextReader
context int
return DateTime?

ParseNullableCollection() public static method

public static ParseNullableCollection ( BufferedTextReader reader, int context ) : List
reader BufferedTextReader
context int
return List

ParseNullableCollectionUtc() public static method

public static ParseNullableCollectionUtc ( BufferedTextReader reader, int context ) : List
reader BufferedTextReader
context int
return List

ParseNullableUtc() public static method

public static ParseNullableUtc ( BufferedTextReader reader, int context ) : DateTime?
reader BufferedTextReader
context int
return DateTime?

ParseUtc() public static method

public static ParseUtc ( BufferedTextReader reader, int context ) : System.DateTime
reader BufferedTextReader
context int
return System.DateTime

Serialize() public static method

public static Serialize ( System.DateTime value, char buffer, int pos, int hours ) : int
value System.DateTime
buffer char
pos int
hours int
return int

Serialize() public static method

public static Serialize ( DateTimeOffset value, char buffer, int pos, int hours ) : int
value DateTimeOffset
buffer char
pos int
hours int
return int

ToDatabase() public static method

public static ToDatabase ( System.DateTime value ) : string
value System.DateTime
return string

ToDatabase() public static method

public static ToDatabase ( DateTimeOffset value ) : string
value DateTimeOffset
return string

ToTuple() public static method

public static ToTuple ( System.DateTime value ) : IPostgresTuple
value System.DateTime
return IPostgresTuple

ToTupleUtc() public static method

public static ToTupleUtc ( System.DateTime value ) : IPostgresTuple
value System.DateTime
return IPostgresTuple