www.delorie.com/archives/browse.cgi | search |
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:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=LM81y3SYyN2mjq7h | |
/mQGKGQdHvYSFx/e1HTYptI4DJS5kGB3DbXw782x7xr8dLGZmR1EP4XL7fFjHtS5 | |
NBHuWfpEW6S2GNeMSFtkikAuR2h2qft2pX7CQFSrsxrmPmhBW3x4g1o3mJ9de13o | |
7AfOruDCpPfe1k1szFWENJLyVFk= | |
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:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=0kwwIHuem5bNGxsvtQAcGR | |
KV4E4=; b=dOjNc7ZyLOvUB6IiT9KB4px/akmrW9Bv9ozMXKa5xbzIJ/+kg2zGOw | |
VrzMrvZ3iEmjuHYUhPR7Pcn1BQPos3Bmz/n3d32G9QaJifO6WKItoLHintloG+hI | |
DaI2ehZOL8kwQwpA1m+y5Gm/w7A7L/3hsJ6lWDX1AzIgzHseqauO8= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=0.8 required=5.0 tests=BAYES_50 autolearn=ham version=3.3.2 spammy=ton, UD:UTF-8, en_USUTF8, en_us.utf-8 |
X-HELO: | midtown.nycx.com |
Subject: | Re: Different representations of time in ls -l and date(1) |
To: | cygwin AT cygwin DOT com |
References: | <A45B1767F1002449A37508C2CC6003D736A232 AT DEFTHW99EJ1MSX DOT ww902 DOT siemens DOT net> <860c2a0f5dd46780649de9a26ebc0464 AT mhoenicka DOT de> |
From: | Frank Farance <frank AT farance DOT com> |
Message-ID: | <dcd35b85-cfff-a821-a81c-b311db1bd242@farance.com> |
Date: | Wed, 31 Aug 2016 09:04:17 -0400 |
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> |
X-IsSubscribed: | yes |
On 2016-08-31 08: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? >> >> -- >> 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 and Marco- You have misunderstood the question. Question Intended: Why are they different? Incorrectly Interpreted: There are lots of options for "ls" and "date". I have everything in 24-hour format, yet my LC_TIME and LANG are the same as Konrad. Furthermore, I'd say that the default output of "date" should look like the Linux one, which is the way it has looked on UNIX for about 40 years: Linux: Wed Aug 31 08:56:10 EDT 2016 Cygwin: Wed, Aug 31, 2016 08:54:49 In other words, on Cygwin: get rid of the commas, put back the timezone. -FF -- ______________________________________________________________________ Frank Farance, Farance Inc. T: +1 212 486 4700 M: +1 917 751 2900 mailto:frank AT farance DOT com http://farance.com Standards/Products/Services for Information/Communication Technologies -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |