Software: Apache. PHP/8.3.27 uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364) Safe-mode: OFF (not secure) /usr/share/doc/libimage-exiftool-perl/html/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
NAMEImage::ExifTool::Shift.pl - ExifTool time shifting routines DESCRIPTIONThis module contains routines used by ExifTool to shift date and time values. METHODSShiftTimeShift date/time value
SHIFT STRINGTime shifts are applied to standard EXIF-formatted date/time values (eg. Date-only values are shifted using the following formats:
Time-only values are shifted using the following formats:
Timezone shifts are specified in the following formats:
A valid shift value consists of one or two arguments, separated by a space. If only one is provided, it is assumed to be a time shift when applied to a time-only or a date/time value, or a date shift when applied to a date-only value. For example:
If two arguments are given, the date shift is first, followed by the time shift:
A date shift is simply ignored if applied to a time value or visa versa. Numbers specified in shift fields may contain a decimal point:
And to save typing, a zero is assumed for any missing numbers:
Below are some specific examples applied to real date and/or time values ('Dir' is the applied shift direction: '+' is positive, '-' is negative):
NOTESThe format of the original date/time value is not changed when the time shift is applied. This means that the length of the date/time string will not change, and only the numbers in the string will be modified. The only exception to this rule is that a 'Z' timezone is changed to '+00:00' notation if a timezone shift is applied. A timezone will not be added to the date/time string. TRICKYThis module is perhaps more complicated than it needs to be because it is designed to be very flexible in the way time shifts are specified and applied... The ability to shift dates by Y years, M months, etc, conflicts with the design goal of maintaining a constant shift for all time values when applying a batch shift. This is because shifting by 1 month can be equivalent to anything from 28 to 31 days, and 1 year can be 365 or 366 days, depending on the starting date. The inconsistency is handled by shifting the first tag found with the actual specified shift, then calculating the equivalent time difference in seconds for this shift and applying this difference to subsequent tags in a batch conversion. So if it works as designed, the behaviour should be both intuitive and mathematically correct, and the user shouldn't have to worry about details such as this (in keeping with Perl's "do the right thing" philosophy). BUGSDue to the use of the standard time library functions, dates are typically limited to the range 1970 to 2038 on 32-bit systems. AUTHORCopyright 2003-2022, Phil Harvey (philharvey66 at gmail.com) This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0136 ]-- |