[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#890734: texlive-metapost: mpost does not honour SOURCE_DATE_EPOCH



Am 01.08.2019 um 14:36 teilte Jerome BENOIT mit:
> On 01/08/2019 15:10, Hilmar Preuße wrote:

Hi,

>>   mp_ps_print_nl(mp, "%%CreationDate: ");
>>   mp_ps_print_int(mp, round_unscaled(internal_value(mp_year)));
>>   mp_ps_print_char(mp, '.');
>>   mp_ps_print_dd(mp, round_unscaled(internal_value(mp_month)));
>>   mp_ps_print_char(mp, '.');
>>   mp_ps_print_dd(mp, round_unscaled(internal_value(mp_day)));
>>   mp_ps_print_char(mp, ':');
>>   t = round_unscaled(internal_value(mp_time));
>>   mp_ps_print_dd(mp, t / 60);
>>   mp_ps_print_dd(mp, t % 60);
>>
>> We'd have to calculate human readable time and then split it into 
>> strings to populate the variables,
> 
> This far harder that it looks.
> 
>  if we want to do it right...
> 
> Anyway, I think the reverse must be done:
> modify mp_{year,month,day,time} .
> 
Sorry, I forgot to mention, that strftime() should be able to not just
display the whole time string, but also just parts of it. Therefore it
should be not that hard to populate mp_{year,month,day,time} and use it
later on.

Hilmar
-- 
sigfault
#206401 http://counter.li.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: