using System;
namespace Komodex.NETMF.MicroTweet
{
static class Utility
{
#region DateTime Extension Methods
///
/// Returns the number of seconds since January 1, 1970
///
public static long GetTimestamp(this DateTime dt)
{
DateTime epoch = new DateTime(1970, 1, 1);
TimeSpan timeSpan = (DateTime.Now - epoch);
return timeSpan.Ticks / 10000000;
}
#endregion
}
}