C# Class Universe.Framework.Utilities.Culture

Exibir arquivo Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Methods

Method Description
LocaleDate ( System.DateTime userDateTime ) : string

Returns a formatted date string depending upon the system Locale.

LocaleDate ( System.DateTime userDateTime, string dtFormat ) : string

Returns a formatted date string depending upon the system Locale.

LocaleLogStamp ( ) : string

Returns a formatted date time string depending upon the system Locale. Used for logging

LocaleTimeDate ( ) : string

Returns a formatted date time string depending upon the system Locale.

SetCurrentCulture ( ) : void

Set Culture to en-US to make string processing of numbers simpler.

Method Details

LocaleDate() public static method

Returns a formatted date string depending upon the system Locale.
public static LocaleDate ( System.DateTime userDateTime ) : string
userDateTime System.DateTime
return string

LocaleDate() public static method

Returns a formatted date string depending upon the system Locale.
public static LocaleDate ( System.DateTime userDateTime, string dtFormat ) : string
userDateTime System.DateTime User date time.
dtFormat string DateTime format if required.
return string

LocaleLogStamp() public static method

Returns a formatted date time string depending upon the system Locale. Used for logging
public static LocaleLogStamp ( ) : string
return string

LocaleTimeDate() public static method

Returns a formatted date time string depending upon the system Locale.
public static LocaleTimeDate ( ) : string
return string

SetCurrentCulture() public static method

Set Culture to en-US to make string processing of numbers simpler.
public static SetCurrentCulture ( ) : void
return void