* [devel] Время на packages.altlinux.org
@ 2018-08-06 16:43 Igor Zubkov
2018-08-06 16:56 ` Michael Shigorin
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Igor Zubkov @ 2018-08-06 16:43 UTC (permalink / raw)
To: ALT Linux Team development discussions
Hello,
Переписываю парсер rpm файлов для packages.altlinux.org. И тут возник
вопрос который касается того как же rpm считает время.
$ rpm -qp --qf="%{BUILDTIME}\n" spec/data/catpkt-1.0-alt5.src.rpm
1349449185
$
Вот это время в каком часовом поясе? В rpm есть ещё пару таких мест,
но я думаю что они работают так же. Если нет, вот ещё пример:
$ rpm -qp --qf="%{CHANGELOGTIME}\n" spec/data/catpkt-1.0-alt5.src.rpm
1349438400
$
--
Igor Zubkov
http://hi.im/ice
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Время на packages.altlinux.org
2018-08-06 16:43 [devel] Время на packages.altlinux.org Igor Zubkov
@ 2018-08-06 16:56 ` Michael Shigorin
2018-08-06 17:16 ` Nikolay A. Fetisov
2018-08-06 17:31 ` Alexey V. Vissarionov
2 siblings, 0 replies; 7+ messages in thread
From: Michael Shigorin @ 2018-08-06 16:56 UTC (permalink / raw)
To: devel
On Mon, Aug 06, 2018 at 07:43:24PM +0300, Igor Zubkov wrote:
> Переписываю парсер rpm файлов для packages.altlinux.org. И тут возник
> вопрос который касается того как же rpm считает время.
http://lmgtfy.com/?q=unix+epoch
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Время на packages.altlinux.org
2018-08-06 16:43 [devel] Время на packages.altlinux.org Igor Zubkov
2018-08-06 16:56 ` Michael Shigorin
@ 2018-08-06 17:16 ` Nikolay A. Fetisov
2018-08-07 11:41 ` Igor Zubkov
2018-08-06 17:31 ` Alexey V. Vissarionov
2 siblings, 1 reply; 7+ messages in thread
From: Nikolay A. Fetisov @ 2018-08-06 17:16 UTC (permalink / raw)
To: ALT Linux Team development discussions
Здравствуйте,
В Пн, 06/08/2018 в 19:43 +0300, Igor Zubkov пишет:
> Переписываю парсер rpm файлов для packages.altlinux.org. И тут возник
> вопрос который касается того как же rpm считает время.
>
> $ rpm -qp --qf="%{BUILDTIME}\n" spec/data/catpkt-1.0-alt5.src.rpm
> 1349449185
Насколько понимаю, timestamp времени сборки пакета:
$ date --date=@1349449185
Пт окт 5 18:59:45 MSK 2012
Который (почти) совпадает с временем изменения собственно файла пакета:
$ stat files/SRPMS/catpkt-1.0-alt5.src.rpm
Файл: files/SRPMS/catpkt-1.0-alt5.src.rpm
...
Модифицирован: 2012-10-05 19:00:14.000000000 +0400
>
> ...В rpm есть ещё пару таких мест,
> но я думаю что они работают так же. Если нет, вот ещё пример:
>
> $ rpm -qp --qf="%{CHANGELOGTIME}\n" spec/data/catpkt-1.0-alt5.src.rpm
> 1349438400
В записях ChangeLog нет отметки времени - только дата. Как я понимаю,
привязана она к полудню по CEST:
$ rpm -qp --changelog files/SRPMS/catpkt-1.0-alt5.src.rpm
* Пт окт 05 2012 Igor Zubkov <icesik@> 1.0-alt5
....
$ TZ=CEST date --date=@1349438400
Пт окт 5 12:00:00 CEST 2012
--
С уважением,
Николай Фетисов
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Время на packages.altlinux.org
2018-08-06 17:16 ` Nikolay A. Fetisov
@ 2018-08-07 11:41 ` Igor Zubkov
2018-08-08 4:42 ` Nikolay A. Fetisov
0 siblings, 1 reply; 7+ messages in thread
From: Igor Zubkov @ 2018-08-07 11:41 UTC (permalink / raw)
To: ALT Linux Team development discussions
2018-08-06 20:16 GMT+03:00 Nikolay A. Fetisov:
>> ...В rpm есть ещё пару таких мест,
>> но я думаю что они работают так же. Если нет, вот ещё пример:
>>
>> $ rpm -qp --qf="%{CHANGELOGTIME}\n" spec/data/catpkt-1.0-alt5.src.rpm
>> 1349438400
>
> В записях ChangeLog нет отметки времени - только дата. Как я понимаю,
> привязана она к полудню по CEST:
Epoch to unix time говорит что это 10/05/2012 @ 12:00pm (UTC).
Есть какие-то подтерждения что это именно 12pm?
> $ rpm -qp --changelog files/SRPMS/catpkt-1.0-alt5.src.rpm
> * Пт окт 05 2012 Igor Zubkov <icesik@> 1.0-alt5
> ....
>
> $ TZ=CEST date --date=@1349438400
> Пт окт 5 12:00:00 CEST 2012
--
Igor Zubkov
http://hi.im/ice
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Время на packages.altlinux.org
2018-08-06 16:43 [devel] Время на packages.altlinux.org Igor Zubkov
2018-08-06 16:56 ` Michael Shigorin
2018-08-06 17:16 ` Nikolay A. Fetisov
@ 2018-08-06 17:31 ` Alexey V. Vissarionov
2018-08-07 11:22 ` Igor Zubkov
2 siblings, 1 reply; 7+ messages in thread
From: Alexey V. Vissarionov @ 2018-08-06 17:31 UTC (permalink / raw)
To: ALT Linux Team development discussions
On 2018-08-06 19:43:24 +0300, Igor Zubkov wrote:
> Переписываю парсер rpm файлов для packages.altlinux.org. И тут возник
> вопрос который касается того как же rpm считает время.
> $ rpm -qp --qf="%{BUILDTIME}\n" spec/data/catpkt-1.0-alt5.src.rpm
> 1349449185
> Вот это время в каком часовом поясе?
В каком нужно, в таком и будет.
`date '+%F %T %Z' -d '1970-01-01 UTC +1349449185 seconds'`
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-08-08 4:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-06 16:43 [devel] Время на packages.altlinux.org Igor Zubkov
2018-08-06 16:56 ` Michael Shigorin
2018-08-06 17:16 ` Nikolay A. Fetisov
2018-08-07 11:41 ` Igor Zubkov
2018-08-08 4:42 ` Nikolay A. Fetisov
2018-08-06 17:31 ` Alexey V. Vissarionov
2018-08-07 11:22 ` Igor Zubkov
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git