16 lines
442 B
C#
16 lines
442 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace xCommons.Helpers {
|
|
public partial class XDateHelper {
|
|
/// <summary>
|
|
/// retrieve utc now timestam unix like representation ...
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static long UtcNowTimespan () {
|
|
return DateTimeOffset.UtcNow.ToUnixTimeMilliseconds ();
|
|
}
|
|
}
|
|
} |