<blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=22654167" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pavlinamv">@pavlinamv</a> So then, how does date in GNU Coreutils do it?</p>
</blockquote>
<p>rpm task:<br>
<em>input</em>: time in an arbitrary time zone, the time zone description<br>
<em>result</em>: the corresponding time in UTC.</p>
<p>Command <code>date</code> <em>prints</em> or <em>sets</em> the system date and time. Neither <em>printing</em>, nor <em>setting</em> is so complex (or the same as) as the rpm task.</p>
<p>If date is used for <em>printing</em> of the system date and time then it uses strftime() from time.h. This function can be used for printing of time zone name or abbreviation that is stored in TZ. It can not be used for setting a different time zone than is in TZ and time zone abbreviations can not be in used TZ.</p>
<p>If date is used for <em>setting</em> then input time can be in a different time zone (than described in TZ) only if the timezone is UTC. Thus it can not be used for setting time zone from an <em>arbitrary</em> time zone abbreviation too.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/739?email_source=notifications&email_token=ADLPZU5P4XJLB2TI6IYTHDDQB32SZA5CNFSM4HTUSY7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3A2G5Q#issuecomment-516006774">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUZDGKHU65KLVU33X3TQB32SZANCNFSM4HTUSY7A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU4KKICTMO6HFD25W2LQB32SZA5CNFSM4HTUSY7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3A2G5Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/739?email_source=notifications\u0026email_token=ADLPZU5P4XJLB2TI6IYTHDDQB32SZA5CNFSM4HTUSY7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3A2G5Q#issuecomment-516006774",
"url": "https://github.com/rpm-software-management/rpm/pull/739?email_source=notifications\u0026email_token=ADLPZU5P4XJLB2TI6IYTHDDQB32SZA5CNFSM4HTUSY7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3A2G5Q#issuecomment-516006774",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>