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:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=C+/YiHPqfUWVYtcxEyFUBSvEgxc5+ B2uldWJ284DCu8h+87RvFNk9oL7WJq+jC+kgiCbFLpxioRQFsZWaeM7TdZY5kou4 ecrW3uelWH2/0YprD8JzDVcF9XuhuH3UbKKonu7UF8GZ22jB4YDfzEnFQsQq6tpM Sv/hPn7Xdxb6nU= 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:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=+P0HRPf41HGdfeVed1Agjc3ZaSY=; b=khR 9CuLuxzxGjhzzN0pN0/ioob/jcW4szm/Is6aCT5YZ+5ZDl5vq9gc3/QcMgLFq5Iv DKkwL5xaMXSM6CqnDeX0b57n+Uyif288G/jLkU4mVZAbdwNmcI5gwGYe6aDufNOV aFseEtLuWNqxBbePigGf5NgGdfBbWBmvUp8tHdss= 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-HELO: usa7108mr008.acs-inc.com From: "Nellis, Kenneth" To: "cygwin AT cygwin DOT com" Subject: RE: Cygwin date displays only GMT on Win7 Date: Wed, 8 Jul 2015 20:41:38 +0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E8FEE8A@USA7109MB022.na.xerox.net> References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t68KgBQn031974 Siv wrote: > > date --date='TZ="ANYTHING" isn't working as expected > Thanx. Anyway the last 2 cmds worked : > > date Wed, Jul 08, 2015 2:03:12 PM > date -u Wed, Jul 08, 2015 2:03:13 PM > date --date='TZ="Asia/Delhi"' Wed, Jul 08, 2015 12:00:00 AM > date --date='TZ="Asia/Calcutta"' Tue, Jul 07, 2015 6:30:00 PM > date --date='TZ="Asia/Kolkata"' Tue, Jul 07, 2015 6:30:00 PM > TZ=Asia/Delhi date Wed, Jul 08, 2015 2:03:14 PM > TZ=Asia/Kolkata date Wed, Jul 08, 2015 7:33:15 PM > TZ=Asia/Calcutta date Wed, Jul 08, 2015 7:33:15 PM > As expected?? Where did you get this --date='TZ=..." syntax?? Not anywhere I could find. --date=STRING Read the man page. STRING works like this: $ date Wed Jul 8 16:38:44 EDT 2015 $ date --date=Thursday Thu Jul 9 00:00:00 EDT 2015 $ date --date="last Monday" Mon Jul 6 00:00:00 EDT 2015 $ date --date="25 dec 2016" Sun Dec 25 00:00:00 EST 2016 $ --Ken Nellis -- 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