quite a bit, too much to summarize here
This commit is contained in:
parent
24845b6b52
commit
5f22d25559
336 changed files with 171740 additions and 351 deletions
17
WindowsFormsApplication2/Utils.cs
Normal file
17
WindowsFormsApplication2/Utils.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace JellyfinRPC
|
||||
{
|
||||
class Utils
|
||||
{
|
||||
public static long DateTimeInUnix(DateTime dateTime)
|
||||
{
|
||||
long unixTimestamp = dateTime.Ticks - new DateTime(1970, 1, 1).Ticks;
|
||||
unixTimestamp /= TimeSpan.TicksPerSecond;
|
||||
return unixTimestamp;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue