//-----------------------------------------------------------------------
//
// Copyright (c) Beemway. All rights reserved.
//
//
// Microsoft Public License (Ms-PL http://opensource.org/licenses/ms-pl.html).
// Contributors may add their own copyright notice above.
//
//-----------------------------------------------------------------------
using System;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Xml.Serialization;
namespace LinkedIn.Utility
{
///
/// A utilities class
///
public static class Utilities
{
///
/// Generate the timestamp of the provided .
///
/// The object.
/// A timestamp.
public static string GenerateTimestamp(DateTime dateTime)
{
TimeSpan t = (dateTime - new DateTime(1970, 1, 1));
return ((long)t.TotalMilliseconds).ToString(CultureInfo.InvariantCulture);
}
}
}