tamhinsf / ChannelSurf

Move from Slack to Microsoft Teams and manage your Teams environment
114 stars 31 forks source link

Converting Timestamps to Pretty Datetimes #7

Open argvMatey opened 6 years ago

argvMatey commented 6 years ago

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 commented 5 years ago

Where would this go in ChannelSurfCli.csproj ?