DiscordMediaLoader/Discord Media Loader.Application/Classes/RPC/DiscordRpcHelper.cs

17 lines
358 B
C#
Raw Normal View History

2018-04-01 20:16:17 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DML.Application.Classes.RPC
{
public static class DiscordRpcHelper
{
public static long DateTimeToTimestamp(DateTime dt)
{
return (dt.Ticks - 621355968000000000) / 10000000;
}
}
}