<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: required info on timestamp in shell script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044293#M64674</link>
    <description>A 'timestamp' field will quite happily just take a date.  It will assume midnight of that day however.</description>
    <pubDate>Thu, 26 Jul 2007 06:32:14 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2007-07-26T06:32:14Z</dc:date>
    <item>
      <title>required info on timestamp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044292#M64673</link>
      <description>hi all,&lt;BR /&gt;I have a field named timestamp in a tablei n mysql database.And its datatype is timestamp.for ex: the values in that field will look like, 2007-07-02 17:26:06&lt;BR /&gt;&lt;BR /&gt;My question is this:i am accepting only date in my shell script as input.So do we need to enter the seconds also or just date will do.&lt;BR /&gt;If only date is the input how to check all the entries for that give date(since hours,mins and seconds changes rit).Pls do reply asap.Thnks in advance.</description>
      <pubDate>Thu, 26 Jul 2007 01:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044292#M64673</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2007-07-26T01:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: required info on timestamp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044293#M64674</link>
      <description>A 'timestamp' field will quite happily just take a date.  It will assume midnight of that day however.</description>
      <pubDate>Thu, 26 Jul 2007 06:32:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044293#M64674</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-07-26T06:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: required info on timestamp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044294#M64675</link>
      <description>k.But it is incorrect rit.Because if it takes the midnight time,wht about the other time in the same day.So if i do a select * from table where date=27-01-2007 it wil just return one value.i.e, midnight time.The rest will be ignored.So how to go abt it.any other suggestions</description>
      <pubDate>Thu, 26 Jul 2007 08:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044294#M64675</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2007-07-26T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: required info on timestamp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044295#M64676</link>
      <description>Oh.  You want to retrieve data from the field..&lt;BR /&gt;&lt;BR /&gt;Compare it against a date_format() that just looks at the month:&lt;BR /&gt;&lt;BR /&gt;SELECT * FROM tbl WHERE DATE_FORMAT(timestamp_field, "%Y-%m-%d") = '2007-01-27';&lt;BR /&gt;&lt;BR /&gt;You can manipulate the date order to be however you want at this point.</description>
      <pubDate>Thu, 26 Jul 2007 16:01:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044295#M64676</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-07-26T16:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: required info on timestamp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044296#M64677</link>
      <description>k.Thnks,I wil let u know whtr it works or not.</description>
      <pubDate>Fri, 27 Jul 2007 02:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/required-info-on-timestamp-in-shell-script/m-p/4044296#M64677</guid>
      <dc:creator>Karthik_sg</dc:creator>
      <dc:date>2007-07-27T02:12:00Z</dc:date>
    </item>
  </channel>
</rss>

