From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107897 invoked by alias); 31 Aug 2016 12:18:59 -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 107880 invoked by uid 89); 31 Aug 2016 12:18:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=ton, UD:UTF-8, UD:en_US.UTF-8, en_US.UTF-8 X-HELO: mail-wm0-f49.google.com Received: from mail-wm0-f49.google.com (HELO mail-wm0-f49.google.com) (74.125.82.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Aug 2016 12:18:57 +0000 Received: by mail-wm0-f49.google.com with SMTP id 1so37312926wmz.1 for ; Wed, 31 Aug 2016 05:18:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=lAvdfCZRLEKYYjbrbwQ0GB2pzGj4hj7MzYmU678ozes=; b=aPt3oV48yV1TXR92N6G7BrnZR8/h65dfg6Pn00G4XNMBLIg2pV+p4M1yyYO4aIICyE J7vkTLLaR8Jry4SvklCVzexLh+U2U7K8ih/w7iSHBJe2MHjCpMEeLl3iL1DTwZSBVUnS GpiWv/ZV9zjdluebCx1hxPVi2jUEC5wx3Stuuhdh12Jh/t2sd8AlhJI0/shqjRtiEL9Q sOfpvkeEk6asR40P+RZT+73gvVOAcvD6XwRz1OsKTrEJDOAPqa/85ROUM3oPu58AkdMt +eInCvcUbevdE0ViGTqrxrbNv8dkvbnXUb78o3doXkSzXDOQZUEgMs/DGvN0Pv5Q7A27 SKfg== X-Gm-Message-State: AE9vXwMcVJDQgGLjwdi376Qid0jn20gM0Sx3nsZn7uE8LpXNWROXLp7MNW4s+PYslHueIw== X-Received: by 10.194.126.168 with SMTP id mz8mr8902621wjb.27.1472645934637; Wed, 31 Aug 2016 05:18:54 -0700 (PDT) Received: from [172.21.188.226] ([149.6.156.42]) by smtp.googlemail.com with ESMTPSA id q137sm23463948wmd.19.2016.08.31.05.18.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Aug 2016 05:18:53 -0700 (PDT) Subject: Re: Different representations of time in ls -l and date(1) To: cygwin@cygwin.com References: <860c2a0f5dd46780649de9a26ebc0464@mhoenicka.de> From: Marco Atzeri Message-ID: <622122e4-d525-d95d-c4fe-b4ea63d59ef7@gmail.com> Date: Wed, 31 Aug 2016 14:23:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <860c2a0f5dd46780649de9a26ebc0464@mhoenicka.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00628.txt.bz2 On 31/08/2016 14:09, Markus Hoenicka wrote: > 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? >> > > date has a ton of options to format the output including the 12/24 h > style, , see 'man date'. > > regards, > Markus > same for ls. Regards Marco -- 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