C# Class Yaml.Timestamp

Yaml Timestamp node uri: tag:yaml.org,2002:timestamp
Inheritance: Scalar
Afficher le fichier Open project: rs-services/RightGridWindowsImplementation Class Usage Examples

Méthodes publiques

Méthode Description
Timestamp ( System.DateTime datetime ) : System

Basic constructor that takes a given datetime

Timestamp ( System.DateTime datetime, double timezone ) : System

Basic constructor, that also gives the posibility to set a timezone

Timestamp ( ParseStream stream ) : System

Parse a DateTime

ToString ( ) : string

To String

Méthodes protégées

Méthode Description
Write ( WriteStream stream ) : void

Write to YAML

Private Methods

Méthode Description
ParseMilliSeconds ( ParseStream stream ) : int

Parse the milliseconds

ParseNumber ( ParseStream stream, int length ) : int

Parse an integer

ParseTime ( ParseStream stream, int &hour, int &minutes, int &seconds ) : void

Parse the time (hours, minutes, seconds)

ParseTimezone ( ParseStream stream ) : double

Parse the time zone

SkipChar ( ParseStream stream, char toSkip ) : void

Skips a specified char, and throws an exception when another char was found.

SkipWhitespace ( ParseStream stream ) : void

Skips the spaces * and tabs * in the current stream

YamlString ( ) : string

Yaml notation for this datetime

Method Details

Timestamp() public méthode

Basic constructor that takes a given datetime
public Timestamp ( System.DateTime datetime ) : System
datetime System.DateTime A .NET 1.0 datetime
Résultat System

Timestamp() public méthode

Basic constructor, that also gives the posibility to set a timezone
public Timestamp ( System.DateTime datetime, double timezone ) : System
datetime System.DateTime A .NET 1.0 datetime
timezone double The offset, in hours,r to UTC that determine the timezone
Résultat System

Timestamp() public méthode

Parse a DateTime
public Timestamp ( ParseStream stream ) : System
stream ParseStream
Résultat System

ToString() public méthode

To String
public ToString ( ) : string
Résultat string

Write() protected méthode

Write to YAML
protected Write ( WriteStream stream ) : void
stream WriteStream
Résultat void