


Negative): Original Value Shift Dir Shifted Value Values ('Dir' is the applied shift direction: '+' is positive, '-' is '2.5 0' - 2 days 12 hours (date/time), 12 hours (time) orĪnd to save typing, a zero is assumed for any missing numbers: '1::' - shift by 1 hour (time, date/time) or 1 year (date)īelow are some specific examples applied to real date and/or time Numbers specified in shift fields may contain a decimal point: '1.5' - 1 hour 30 minutes (time, date/time), or 1 day (date) '1:0:0 0:0:0+5:0' - shift date by 1 year and timezone by 5 hoursĪ date shift is simply ignored if applied to a time value or visa '0 15:30' - shift time by 15 hours and 30 minutes The time shift: '3:0:0 0' - shift date by 3 years If two arguments are given, the date shift is first, followed by '0:0:1' - shift 1 s (time, date/time), or 1 day (date) '5:0:0' - shift 5 hours (time, date/time), or 5 years (date) '2:0' - shift 2 hours (time, date/time), or 2 months (date) Value, or by one day if applied to a date value For example: '1' - shift by 1 hour if applied to a time or date/time If only one is provided, it is assumed to be a time shift whenĪpplied to a time-only or a date/time value, or a date shift when applied toĪ date-only value.

'-h' - negative shift of timezone hours onlyĪ valid shift value consists of one or two arguments, separated byĪ space. '-h:m' - negative shift of timezone hours and minutes Timezone shifts are specified in the following formats: '+h:m' - shift timezone by 'h' hours and 'm' minutes

Time-only values are shifted using the following formats: 'h:m:s' - shift time by 'h' hours, 'm' minutes and 's' seconds Some general rules and examples to explain how shift strings areĭate-only values are shifted using the following formats: 'Y:M:D' - shift date by 'Y' years, 'M' months and 'D' days Time shifts are applied to standard EXIF-formatted date/timeĭate-only and time-only values may also be shifted, and an optional timezone Return value: Error string, or undef on success and the input date/time string is "2016:01:30ġ) Shift string (see below) with optional leading sign forĢ) Direction of shift (-1 or +1), or 0 or undef toģ) Reference to time-shift hash - filled in byįirst call to ShiftTime, and used in subsequent calls to shiftĭate/time values by the same relative amount (see "TRICKY" $err = Image::ExifTool::ShiftTime($dateTime, $shift) Inputs: 0) Date/time string in EXIF format (eg. Shift date/time value use Image::ExifTool This module contains routines used by ExifTool to shift date and Image::ExifTool:: - ExifTool time shifting routines DESCRIPTION
