mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Fixed DateTime to timestamp int --> double
This commit is contained in:
parent
05721ef9f7
commit
4b40a1b477
@ -23,9 +23,9 @@ namespace SpotifyAPI.Web
|
||||
return string.Join(separator, list);
|
||||
}
|
||||
|
||||
public static int ToUnixTimeMillisecondsPoly(this DateTime time)
|
||||
public static double ToUnixTimeMillisecondsPoly(this DateTime time)
|
||||
{
|
||||
return (int)time.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
|
||||
return time.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user