C# 클래스 Yaml.Timestamp

Yaml Timestamp node uri: tag:yaml.org,2002:timestamp
상속: Scalar
파일 보기 프로젝트 열기: rs-services/RightGridWindowsImplementation 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Write ( WriteStream stream ) : void

Write to YAML

비공개 메소드들

메소드 설명
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

메소드 상세

Timestamp() 공개 메소드

Basic constructor that takes a given datetime
public Timestamp ( System.DateTime datetime ) : System
datetime System.DateTime A .NET 1.0 datetime
리턴 System

Timestamp() 공개 메소드

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
리턴 System

Timestamp() 공개 메소드

Parse a DateTime
public Timestamp ( ParseStream stream ) : System
stream ParseStream
리턴 System

ToString() 공개 메소드

To String
public ToString ( ) : string
리턴 string

Write() 보호된 메소드

Write to YAML
protected Write ( WriteStream stream ) : void
stream WriteStream
리턴 void