Added helper file
This commit is contained in:
parent
8aa1296887
commit
2add4afa24
|
@ -0,0 +1,16 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -162,6 +162,7 @@
|
|||
<Compile Include="Classes\Job.cs" />
|
||||
<Compile Include="Classes\JobScheduler.cs" />
|
||||
<Compile Include="Classes\RPC\DiscordRpc.cs" />
|
||||
<Compile Include="Classes\RPC\DiscordRpcHelper.cs" />
|
||||
<Compile Include="Classes\RPC\RpcWrapper.cs" />
|
||||
<Compile Include="Dialogs\LoginDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
|
|
Loading…
Reference in a new issue