* Originally in ru.fidonet.today
* Crossposted in ru.ftn.develop
Hello, Stas!
Tuesday April 01 2025 12:20, from Stas Mishchenkov -> Nil A:
P.S. ��-����� ��� ������� ����⠢��� ���� �� 2038 ���,
�⮡� ����� ᮢ���⨬���� � 32-���� time_t?
� �� � ������ 㢨����? �ਢ�� @msgid � ���ᠣ�?
��. ����� � ���. ��� ��ॢ������ �� 1901 ��� �� ��������
����� � ।�����.
� ����� date created - unsigned long. �, ��. 32 ��� � ���.
� ������ JAM spec, � �ᯮ�짮���� ����������� �, � ����� �⪫��뢠���� �� 7�� 䥢ࠫ� 2106 ����. ������ ��� �� �⮩ ����, ⠪ �� ��䨣.
����� � ⮬, �� �ᯮ�짮���� time_t ��� uint32_t - �� �� �⠭���⭮, � ��直� LIBC �㭪樨 mtime, localtime, ctime, �.�. ࠡ���� ��� � ������� ��.
�祭� ���� ���, ����� ᮡ࠭ � time_t 32bit ॥ �ᥣ� ��������. � ᮢ६����� ᡮઠ, � uint32_t ���� ������ �� ᮢ६������ time_t, �.�. int64_t, � ⮣�� localtime � ctime ���� ࠡ���� ���४⭮.
Squish �ᯮ���� DOS �ଠ� ���� (����� ᥪ㭤� ⮫쪮 ���� ����� ����), � ⠬ ��� �����稢����� � 2107 ����. ��, ��� ����� ��� �����!
Msg � .pkt �ଠ� �᭮��� �� 20-���⭮� ��ப�, ⨯� "01 Jan 86 02:34:56", � � ��� 㦥 ࠡ�⠥� � 2000�� ����, � � ����� �㤥� ࠡ����.
��� ���諨 ����� y2k ⮣��? ��ਬ��, ��� � �᪥, �� ⥪�饩 ���� ����/����� ���� � 50 ���.
/* Use sliding window technique to interprete the year number */
while(yy <= tim->tm_year - 50)
{
yy += 100;
}
while(yy > tim->tm_year + 50)
{
yy -= 100;
}
Binkp ��⮪�� ��� ����. ��� ��� ��� - date_time format is described in [RFC822].
� ⠪ �������, �㤥� ��।��� ������ - if $date < '1984' ��� ��-�
� �⮬ ���, ����� ��⮬ ����� ������ � �㤥� ������ �� ��㣮�
⠪�� ��.
�� � �� ��� ����뫨. �������� ���� ��㤦 ;-)
Best Regards, Nil
--- GoldED+/LNX 1.1.5-b20240306
* Origin: ChatGPT can make mistakes. Check important info. (2:5015/46)