-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim K. (Gmane) wrote:
| So is there a way to make a Java Date/Calendar just interoperate with
| the .NET DateTime type whithout any of the sides to make any
| conversions? I understand that in .NET DateTime can be converted to a
| long but it represents "the number of 100-nanosecond intervals that have
| elapsed since 12:00 A.M., January 1, 0001"

~  This is my function to get unixtime from .net:
protected long getUnixTime()
{
        TimeSpan ts = (DateTime.UtcNow - new DateTime(1970,1,1,0,0,0));
        double unixTime = ts.TotalSeconds;
        return (long)unixTime;
}

- --
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black    [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCQxWNikQgpVn8xrARAgB5AKCMlI7Xv6IwK9GbQKvMT5EBhrintgCfRHoA
eKFrlLwkRGMcBJb4oa9aC3M=
=+LmO
-----END PGP SIGNATURE-----

Reply via email to