C# Class gov.va.medora.mdo.dao.vista.VistaTimestamp

ファイルを表示 Open project: OSEHRA/mdo Class Usage Examples

Public Methods

Method Description
corrected ( String ts ) : String
fromDateTime ( System.DateTime t ) : String

Convert DateTime into VistA format

fromDateTimeShortString ( System.DateTime t ) : String

Convert DateTime into VistA format

fromUtcFromDate ( string utcFrom ) : string
fromUtcString ( String ts ) : String

Turns UTC string into VistA timestamp (year - 1700)

fromUtcToDate ( string utcTo ) : string
getDatePart ( String ts ) : String
getDay ( String ts ) : int
getHour ( String ts ) : int
getMinute ( String ts ) : int
getMonth ( String ts ) : int
getSecond ( String ts ) : int
getTimePart ( String ts ) : String
getYear ( String ts ) : int
invertTimestamp ( string ts ) : string
isValid ( String ts ) : bool
noSeconds ( string vistaTS ) : string
padTimeToSeconds ( String vistaTS ) : string
padZeroes ( String ts ) : String
toDateTime ( String vistaTS ) : System.DateTime
toDateTimeFromRdv ( string rdvTS ) : System.DateTime
toUtcFromRdv ( string rdvTS ) : string
toUtcString ( string vistaTS ) : string
trimZeroes ( string ts ) : string

Private Methods

Method Description
padDatePartWithZeroes ( string part ) : string

Pad a month or day string with zeroes

Method Details

corrected() public static method

public static corrected ( String ts ) : String
ts String
return String

fromDateTime() public static method

Convert DateTime into VistA format
public static fromDateTime ( System.DateTime t ) : String
t System.DateTime
return String

fromDateTimeShortString() public static method

Convert DateTime into VistA format
public static fromDateTimeShortString ( System.DateTime t ) : String
t System.DateTime DateTime
return String

fromUtcFromDate() public static method

public static fromUtcFromDate ( string utcFrom ) : string
utcFrom string
return string

fromUtcString() public static method

Turns UTC string into VistA timestamp (year - 1700)
public static fromUtcString ( String ts ) : String
ts String
return String

fromUtcToDate() public static method

public static fromUtcToDate ( string utcTo ) : string
utcTo string
return string

getDatePart() public static method

public static getDatePart ( String ts ) : String
ts String
return String

getDay() public static method

public static getDay ( String ts ) : int
ts String
return int

getHour() public static method

public static getHour ( String ts ) : int
ts String
return int

getMinute() public static method

public static getMinute ( String ts ) : int
ts String
return int

getMonth() public static method

public static getMonth ( String ts ) : int
ts String
return int

getSecond() public static method

public static getSecond ( String ts ) : int
ts String
return int

getTimePart() public static method

public static getTimePart ( String ts ) : String
ts String
return String

getYear() public static method

public static getYear ( String ts ) : int
ts String
return int

invertTimestamp() public static method

public static invertTimestamp ( string ts ) : string
ts string
return string

isValid() public static method

public static isValid ( String ts ) : bool
ts String
return bool

noSeconds() public static method

public static noSeconds ( string vistaTS ) : string
vistaTS string
return string

padTimeToSeconds() public static method

public static padTimeToSeconds ( String vistaTS ) : string
vistaTS String
return string

padZeroes() public static method

public static padZeroes ( String ts ) : String
ts String
return String

toDateTime() public static method

public static toDateTime ( String vistaTS ) : System.DateTime
vistaTS String
return System.DateTime

toDateTimeFromRdv() public static method

public static toDateTimeFromRdv ( string rdvTS ) : System.DateTime
rdvTS string
return System.DateTime

toUtcFromRdv() public static method

public static toUtcFromRdv ( string rdvTS ) : string
rdvTS string
return string

toUtcString() public static method

public static toUtcString ( string vistaTS ) : string
vistaTS string
return string

trimZeroes() public static method

public static trimZeroes ( string ts ) : string
ts string
return string