Changeset 1939:bc64a54e638c


Ignore:
Timestamp:
May 31, 2020, 7:06:42 PM (14 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Fix definition of time shift value

This has changed with the implemenation of ticket #134, see
https://ftputil.sschwarzer.net/trac/ticket/134 .

ticket: 134
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftputil/host.py

    r1938 r1939  
    357357    def set_time_shift(self, time_shift):
    358358        """
    359         Set the time shift value (i. e. the time difference between client and
    360         server, where the client time is in UTC) for this `FTPHost` object. By
    361         (my) definition, the time shift value is positive if the local time of
    362         the server is greater than the local time of the client (for the same
    363         physical time), i. e.
    364 
    365             time_shift =def= t_server - t_client_utc
    366         <=> t_server = t_client_utc + time_shift
    367         <=> t_client_utc = t_server - time_shift
     359        Set the time shift value.
     360
     361        By (my) definition, the time shift value is the difference of
     362        the time zone used in server listings and UTC, i. e.
     363
     364            time_shift =def= t_server - utc
     365        <=> t_server = utc + time_shift
     366        <=> utc = t_server - time_shift
    368367
    369368        The time shift is measured in seconds.
Note: See TracChangeset for help on using the changeset viewer.