Skip to content

Instantly share code, notes, and snippets.

View gon250's full-sized avatar
๐Ÿ’ƒ
I may be slow to respond.

Gonzalo gon250

๐Ÿ’ƒ
I may be slow to respond.
View GitHub Profile
public class JsDateHelper : IJsDateHelper
{
public DateTime FromUnixTime(double unixTime)
{
var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
return epoch.AddMilliseconds(unixTime);
}
public long ToUnixTime(DateTime date)
{
namespace Solution.IoC
{
public class DependencyInjectionProvider
{
private IKernel _kernel;
private void SetUpDependencyInjection()
{
//create _kernel
_kernel = new StandardKernel();