X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:in-reply-to :references:message-id; q=dns; s=default; b=XNFHat7YB4IQsPNgrwVa oZnGNu6I++2moWdV8ABhPcJqukfVM7a9303bg73Q2M8Jn+8xV6nzOUpVSIac314k dIldqCa2BdjaNhDN70dOCKAu7QkIRwlYKGUS/3GsRTR3uCUjxAtbM0m2DJPsglS2 jgPPlhpdlATBPG2U+JJbdpM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:in-reply-to :references:message-id; s=default; bh=H/TXrVbAi6LiPzur3tGUr1q3w1 I=; b=RnAXSSyGroQU2LFwxqCTrtClLSwl1qkiAHus8TgD1kkvTVN+TAQONG3rMc qgqTuMOPZTPxWDrPXM2GYN7gqZ+MuYUzcSbTQVD0YnFp+xGe2aBunN8vcNlJ/NUE e7GKw8f+4JrvWXIK66tBBetctUSAuHyQcOPQ/002nw4Qx6tz4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 31 Aug 2016 14:09:23 +0200 From: Markus Hoenicka To: cygwin AT cygwin DOT 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 DOT hoenicka AT mhoenicka DOT de User-Agent: Roundcube Webmail X-Df-Sender: bWFya3VzLmhvZW5pY2thQG1ob2VuaWNrYS5kZQ== X-IsSubscribed: yes 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