Files
cefsharp/CefSharp/Internals/CefTimeUtils.cs
T
amaitland 40f00d2ce8 Implement IBrowserHost.GetNavigationEntries
Added TaskNavigationEntryVisitor - currently there is no async method exposed on IBrowserHost (be nice if someone else contributed a PR that implemented this).
Resolve #1503
2016-06-07 12:32:34 +10:00

21 lines
548 B
C#

// Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp.Internals
{
public static class CefTimeUtils
{
public static DateTime ConvertCefTimeToDateTime(double epoch)
{
if (epoch == 0)
{
return DateTime.MinValue;
}
return new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(epoch).ToLocalTime();
}
}
}