<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Get_date_and_time_as_Unix_epoch</id>
	<title>Get date and time as Unix epoch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Get_date_and_time_as_Unix_epoch"/>
	<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=Get_date_and_time_as_Unix_epoch&amp;action=history"/>
	<updated>2026-05-08T12:47:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>http://95.179.246.60/mediawiki/index.php?title=Get_date_and_time_as_Unix_epoch&amp;diff=96&amp;oldid=prev</id>
		<title>Nmingott: imported material</title>
		<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=Get_date_and_time_as_Unix_epoch&amp;diff=96&amp;oldid=prev"/>
		<updated>2025-05-04T20:26:32Z</updated>

		<summary type="html">&lt;p&gt;imported material&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039;. You want the current date and time as a Unix epoch. That is, roughly speaking, as number of seconds since 01-Jan-1970.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Solution&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
 DateAndTime now unixTimeSeconds .    &amp;quot;=&amp;gt; 1629056092 &amp;quot;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Exercise&amp;#039;&amp;#039;&amp;#039;. Get the same number running the Linux &amp;lt;code&amp;gt;date&amp;lt;/code&amp;gt; command as an external program.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Exercise&amp;#039;&amp;#039;&amp;#039;. Read the method &amp;lt;code&amp;gt;DateAndTime#unitTimeSeconds&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Nmingott</name></author>
	</entry>
</feed>