<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Work with Date and Time in Bash Using date Command	</title>
	<atom:link href="https://www.tecmint.com/change-linux-system-date-and-time/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/change-linux-system-date-and-time/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 22:11:36 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Alexey		</title>
		<link>https://www.tecmint.com/change-linux-system-date-and-time/comment-page-1/#comment-1901625</link>

		<dc:creator><![CDATA[Alexey]]></dc:creator>
		<pubDate>Thu, 20 Oct 2022 07:39:12 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=40735#comment-1901625</guid>

					<description><![CDATA[Thanks a lot, it&#039;s a very useful article.

&quot;echo $(( ( $(date -d &quot;2020-11-10&quot; &quot;+%s&quot;) - $(date -d &quot;2020-11-01&quot; &quot;+%s&quot;) ) / 86400))&quot;

How do you calculate this number 86400, please?]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot, it&#8217;s a very useful article.</p>
<p>&#8220;echo $(( ( $(date -d &#8220;2020-11-10&#8221; &#8220;+%s&#8221;) &#8211; $(date -d &#8220;2020-11-01&#8221; &#8220;+%s&#8221;) ) / 86400))&#8221;</p>
<p>How do you calculate this number 86400, please?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: leslie Satenstein		</title>
		<link>https://www.tecmint.com/change-linux-system-date-and-time/comment-page-1/#comment-1395009</link>

		<dc:creator><![CDATA[leslie Satenstein]]></dc:creator>
		<pubDate>Thu, 26 Nov 2020 22:24:52 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=40735#comment-1395009</guid>

					<description><![CDATA[&lt;strong&gt;date +s&lt;/strong&gt; is the number of seconds since 1 Jan 1970.  Dividing the result by seconds per day will indicate the day count, the number of days since 1 Jan 1970.   Why is this useful?

I want to run something every 11 days from the previous day.  I determine the day-count (number of days)  since 1 Jan 1970, add 11, and store the result in a file. When I run a cronjob to check today&#039;s daycount against the saved value, subtraction can tell me if the period has expired or the number of days to go. If by chance, I did not boot my computer for 15 days, the day-count subtraction will be negative, and I will run my job, and then set the day-count to 11 past today.]]></description>
			<content:encoded><![CDATA[<p><strong>date +s</strong> is the number of seconds since 1 Jan 1970.  Dividing the result by seconds per day will indicate the day count, the number of days since 1 Jan 1970.   Why is this useful?</p>
<p>I want to run something every 11 days from the previous day.  I determine the day-count (number of days)  since 1 Jan 1970, add 11, and store the result in a file. When I run a cronjob to check today&#8217;s daycount against the saved value, subtraction can tell me if the period has expired or the number of days to go. If by chance, I did not boot my computer for 15 days, the day-count subtraction will be negative, and I will run my job, and then set the day-count to 11 past today.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
