From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70102 invoked by alias); 31 Aug 2016 12:09:37 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 70090 invoked by uid 89); 31 Aug 2016 12:09:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=AWL,BAYES_60,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=ton, UD:UTF-8, UD:en_US.UTF-8, en_US.UTF-8 X-HELO: smtprelay02.ispgateway.de Received: from smtprelay02.ispgateway.de (HELO smtprelay02.ispgateway.de) (80.67.18.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Aug 2016 12:09:26 +0000 Received: from [80.67.16.121] (helo=webmail.df.eu) by smtprelay02.ispgateway.de with esmtpa (Exim 4.84) (envelope-from ) id 1bf4Ka-00059b-0S for cygwin@cygwin.com; Wed, 31 Aug 2016 14:09:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 31 Aug 2016 13:04:00 -0000 From: Markus Hoenicka To: cygwin@cygwin.com Subject: RE: Different representations of time in ls -l and date(1) In-Reply-To: References: Message-ID: <860c2a0f5dd46780649de9a26ebc0464@mhoenicka.de> X-Sender: markus.hoenicka@mhoenicka.de User-Agent: Roundcube Webmail X-Df-Sender: bWFya3VzLmhvZW5pY2thQG1ob2VuaWNrYS5kZQ== X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00626.txt.bz2 At 2016-08-31 13:41, Schwarz, Konrad was heard to say: > Sorry for the previous incomplete mail. > > So my problem is that date(1) outputs AM/PM style dates, whereas ls -l > uses 24 hour times. > > $ ls -l rtos_benchmark.lst > -rwxr-xr-x+ 1 mchn1350 Domain Users 263 Aug 31 13:14 > rtos_benchmark.lst* > $ date > Wed, Aug 31, 2016 1:39:35 PM > $ echo $LC_TIME > > $ echo $LANG > en_US.UTF-8 > > Shouldn't they be using the same format? > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple date has a ton of options to format the output including the 12/24 h style, , see 'man date'. regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple