Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Get The Unix Epoch Time In One Line Of C#

DZone's Guide to

Get The Unix Epoch Time In One Line Of C#

One line of C#, so much awesomeness: The Unix epoch time.

· Java Zone ·
Free Resource

Take 60 minutes to understand the Power of the Actor Model with "Designing Reactive Systems: The Role Of Actors In Distributed Architecture". Brought to you in partnership with Lightbend.


int epoch = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;


Learn how the Actor model provides a simple but powerful way to design and implement reactive applications that can distribute work across clusters of cores and servers. Brought to you in partnership with Lightbend.

Topics:
java ,c# ,unix ,epoch time

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}