Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting Timestamps to Pretty Datetimes #7

Open
argvMatey opened this issue Apr 30, 2018 · 1 comment
Open

Converting Timestamps to Pretty Datetimes #7

argvMatey opened this issue Apr 30, 2018 · 1 comment

Comments

@argvMatey
Copy link

Here is a way to convert timestamps into pretty datetimes:

if (messageTs != null)
{
System.DateTime dateTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
dateTime = dateTime.AddSeconds(Convert.ToDouble(messageTs));
dateTime = dateTime.ToLocalTime();
messageTs = Convert.ToString(dateTime);

                        }
@essgit
Copy link

essgit commented Apr 16, 2019

Where would this go in ChannelSurfCli.csproj ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants