C# Class Schumix.Libraries.Lib

Afficher le fichier Open project: Schumix/Schumix2

Méthodes publiques

Méthode Description
GetDateTimeFromUnixTime ( long unixTime ) : System.DateTime

Gets the date time from unix time.

GetEpochTime ( ) : long

Gets the time since the Unix epoch.

GetEpochTimeFromDT ( ) : long

Gets the time between the Unix epich and a specific time.

GetEpochTimeFromDT ( System.DateTime time ) : long

Gets the time between the Unix epich and a specific time.

GetNetVersion ( ) : string
GetOSName ( ) : string

Returns the name of the operating system running on this computer.

GetPlatform ( ) : string
GetSystemTime ( ) : long

Gets the system uptime.

GetSystemTimeLong ( ) : long

Gets the system uptime.

Even though this returns a long, the original value is a 32-bit integer, so it will wrap back to 0 after approximately 49 and half days of system uptime.

GetUTCTimeMillis ( long millis ) : System.DateTime

Gets the UTC time from millis.

GetUTCTimeSeconds ( long seconds ) : System.DateTime

Gets the UTC time from seconds.

GetUnixTimeStart ( ) : System.DateTime
GetVersion ( ) : string
IsDay ( int Year, int Month, int Day ) : bool
IsPrime ( this x ) : bool
Regex ( this text, string regex ) : string
Regex ( this text, string regex, string groups ) : string
ToMilliSecondsInt ( int ticks ) : int

Converts ticks to miliseconds.

ToMilliSecondsInt ( this time ) : int

Converts DateTime to miliseconds.

print ( object o ) : void
print ( string text ) : void
printf ( object o ) : void
printf ( string text ) : void

Private Methods

Méthode Description
GetCpuId ( ) : string

Method Details

GetDateTimeFromUnixTime() public static méthode

Gets the date time from unix time.
public static GetDateTimeFromUnixTime ( long unixTime ) : System.DateTime
unixTime long The unix time.
Résultat System.DateTime

GetEpochTime() public static méthode

Gets the time since the Unix epoch.
public static GetEpochTime ( ) : long
Résultat long

GetEpochTimeFromDT() public static méthode

Gets the time between the Unix epich and a specific time.
public static GetEpochTimeFromDT ( ) : long
Résultat long

GetEpochTimeFromDT() public static méthode

Gets the time between the Unix epich and a specific time.
public static GetEpochTimeFromDT ( System.DateTime time ) : long
time System.DateTime the end time
Résultat long

GetNetVersion() public static méthode

public static GetNetVersion ( ) : string
Résultat string

GetOSName() public static méthode

Returns the name of the operating system running on this computer.
public static GetOSName ( ) : string
Résultat string

GetPlatform() public static méthode

public static GetPlatform ( ) : string
Résultat string

GetSystemTime() public static méthode

Gets the system uptime.
public static GetSystemTime ( ) : long
Résultat long

GetSystemTimeLong() public static méthode

Gets the system uptime.
Even though this returns a long, the original value is a 32-bit integer, so it will wrap back to 0 after approximately 49 and half days of system uptime.
public static GetSystemTimeLong ( ) : long
Résultat long

GetUTCTimeMillis() public static méthode

Gets the UTC time from millis.
public static GetUTCTimeMillis ( long millis ) : System.DateTime
millis long The millis.
Résultat System.DateTime

GetUTCTimeSeconds() public static méthode

Gets the UTC time from seconds.
public static GetUTCTimeSeconds ( long seconds ) : System.DateTime
seconds long The seconds.
Résultat System.DateTime

GetUnixTimeStart() public static méthode

public static GetUnixTimeStart ( ) : System.DateTime
Résultat System.DateTime

GetVersion() public static méthode

public static GetVersion ( ) : string
Résultat string

IsDay() public static méthode

public static IsDay ( int Year, int Month, int Day ) : bool
Year int
Month int
Day int
Résultat bool

IsPrime() public static méthode

public static IsPrime ( this x ) : bool
x this
Résultat bool

Regex() public static méthode

public static Regex ( this text, string regex ) : string
text this
regex string
Résultat string

Regex() public static méthode

public static Regex ( this text, string regex, string groups ) : string
text this
regex string
groups string
Résultat string

ToMilliSecondsInt() public static méthode

Converts ticks to miliseconds.
public static ToMilliSecondsInt ( int ticks ) : int
ticks int
Résultat int

ToMilliSecondsInt() public static méthode

Converts DateTime to miliseconds.
public static ToMilliSecondsInt ( this time ) : int
time this
Résultat int

print() public static méthode

public static print ( object o ) : void
o object
Résultat void

print() public static méthode

public static print ( string text ) : void
text string
Résultat void

printf() public static méthode

public static printf ( object o ) : void
o object
Résultat void

printf() public static méthode

public static printf ( string text ) : void
text string
Résultat void