Transfer · Task additions · Relative dates

Relative dates and times can be used in date properties like start_date or end_date.

Usage

task:
    type: from_google_analytics
    start_date: yesterday -3 days
    end_date: today

Commands

Point in time

commanddescription
today or current_dayWill pick the trigger_date of the job and truncate it to the day (sets the hours, minutes and seconds to zero).
yesterdayWill pick the trigger_date of the job, truncate it to the day (sets the hours, minutes and seconds to zero) and subtract one day.
tomorrowWill pick the trigger_date of the job and truncate it to the day (sets the hours, minutes and seconds to zero) and add one day.
current_hourWill pick the trigger_date of the job and truncate it to the hour (sets the minutes and seconds to zero).
mondayWill pick the Monday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
tuesdayWill pick the Tuesday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
wednesdayWill pick the Wednesday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
thursdayWill pick the Thursday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
fridayWill pick the Friday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
saturdayWill pick the Saturday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
sundayWill pick the Sunday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
sundayWill pick the Sunday of the current week (Monday based) of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).
firstWill pick the first day of the current month of the trigger_date and truncate it to the day (sets the hours, minutes and seconds to zero).

Adding and subtracting time frames

commanddescription
+ X hour(s)/day(s)/week(s)/month(s)/year(s)Adds X hour(s)/day(s)/week(s)/month(s)/year(s) to the point in time above. You can use this multiple times. E.g. first +1 day +4 hours
- X hour(s)/day(s)/week(s)/month(s)/year(s)Subtract X hour(s)/day(s)/week(s)/month(s)/year(s) to the point in time above. You can use this multiple times. E.g. first -1 day -4 hours