Skip to content

Utilities.Extension

Fatih Aydin edited this page Jan 29, 2014 · 3 revisions

There are a number of extension methods provided by NetUtilities achieving different tasks, the list below details them all.

To convert a byte array to a string: string convertedBytes = bytes.ConvertToString();
To convert the UTC Date/Time to EPOCH: long epochTime = dateTime.ToUtcEpoch();
To convert Epoch to local time: DateTime localTime = epochTime.ConvertEpochToLocalDateTime();
To convert Epoch to UTC time: DateTime utcTime = epochTime.ConvertEpochToUtcDateTime();

Clone this wiki locally