Gmail - Schedule send - gmail

I wish gmail gave more Schedule send times by default - not just default
Tomorrow morning Mar 24, 8:00 AM
Tomorrow afternoon Mar 24, 1:00 PM
Monday morning Mar 30, 8:00 AM
I'd love to have options like
in 2 minutes
in 10 minutes
in 1 hour
in 2 hours
in case I realize I need to add something ...
I guess we need to write a browser extension for that
but you never know that's why I'm asking here ...
any advice?
thank you ...

Related

Time elapsed between two dates (in "working hours")

I must calculate in Excel the time that a Tech Support takes to resolve a problem, in his working hours.
Example :
Ticket created at : 04:00 PM the Friday 3 June 2022
Ticket resolved at : 10:00 AM the Monday 6 June 2022
Working hours : 09:00 AM to 12:00, and 01:30 PM to 06:00 PM
So the result will be : He took 3 hours to resolve the problem.
I'm open to any formula, even in VBA :)
Thanks.
EDIT 1 :
I'm using this formula currently :
=IF((NETWORKDAYS(D2;E2;PublicHolidays)-1)*(Working_Hours!$B$3-Working_Hours!$B$2)
+IF(NETWORKDAYS(D2;E2;PublicHolidays);MEDIAN(MOD(E2;1);Working_Hours!$B$3;Working_Hours!$B$2);Working_Hours!$B$3)
-MEDIAN(NETWORKDAYS(D2;E2;PublicHolidays)*MOD(D2;1);Working_Hours!$B$3;Working_Hours!$B$2)
+(NETWORKDAYS(D2;E2;PublicHolidays)-1)*(Working_Hours!$E$3-Working_Hours!$E$2)
+IF(NETWORKDAYS(D2;E2;PublicHolidays);MEDIAN(MOD(E2;1);Working_Hours!$E$3;Working_Hours!$E$2);Working_Hours!$E$3)
-MEDIAN(NETWORKDAYS(D2;E2;PublicHolidays)*MOD(D2;1);Working_Hours!$E$3;Working_Hours!$E$2)<0;0;(NETWORKDAYS(D2;E2;PublicHolidays)-1)*(Working_Hours!$B$3-Working_Hours!$B$2)
+IF(NETWORKDAYS(D2;E2;PublicHolidays);MEDIAN(MOD(E2;1);Working_Hours!$B$3;Working_Hours!$B$2);Working_Hours!$B$3)
-MEDIAN(NETWORKDAYS(D2;E2;PublicHolidays)*MOD(D2;1);Working_Hours!$B$3;Working_Hours!$B$2)
+(NETWORKDAYS(D2;E2;PublicHolidays)-1)*(Working_Hours!$E$3-Working_Hours!$E$2)
+IF(NETWORKDAYS(D2;E2;PublicHolidays);MEDIAN(MOD(E2;1);Working_Hours!$E$3;Working_Hours!$E$2);Working_Hours!$E$3)
-MEDIAN(NETWORKDAYS(D2;E2;PublicHolidays)*MOD(D2;1);Working_Hours!$E$3;Working_Hours!$E$2))
Well, this is a start, but you need to think about how to deal with multiple days etc:
All the example times shown are formatted as dd.mm.yy hh:mm, even consider putting the Day start & end as just the hour.

Bigquery Custom Schedule Cron Syntax Not Accepted

I am trying to schedule a query to run intraday in Bigquery UI. According to Google's documentation this option uses cron syntax. I have used crontab guru to verify the syntax is correct, although it doesn't matter what syntax you put the scheduler doesn't seem to accept any. Is this a known bug? Below is the cron syntax I'm using to run every 6 hours.
0 */6 * * *
This post attempts to give a more general answer for those that may follow with similar questions.
A full description of the allowed syntax can be found directly here as well as related materials here under "schedule" field information..
For full disclosure, I'm going to lift out some parts directly from that documentation here so this answer can "stand alone".
Generally, the schedule must be of the form:
[TYPE] [INTERVAL_VALUE] [INTERVAL_SCOPE]
and you must decide which of the three different kinds of intervals you will use:
End-time intervals
Start-time intervals
Custom intervals
The kind of interval is chosen implicitly by the schedule you provide.
End-Time Intervals
These are intervals implemented from when a job finishes.
TYPE
Daily intervals must start with the "every" prefix
INTERVAL_VALUE
Valid units of time are as follows:
minutes or mins
hours
INTERVAL_SCOPE
Not applicable for end-time intervals.
Example
If "every 5 mins", and the job finishes at 0201, then then next job waits 5 minutes AFTER completion to begin again, and starts at 0206.
Start-Time Intervals
A strict schedule for the queries to follow.
TYPE
Daily intervals must start with the "every" prefix
INTERVAL_VALUE
Some integer amount of the following units of time:
minutes or mins
hours
The units remain the same even using 1 as the amount.
INTERVAL_SCOPE
Must be of the form:
from [HH:MM] to [HH:MM] with HH=00,01,...,23 and MM=00,01,..., 59.
OR
synchronized
synchronized repeats a time interval and spreads it evenly across the 24 hour period (e.g. like end-time scheduling but fixing it to a start-time).
The [INTERVAL_VALUE] given in conjunction with this option must be a factor of 24 (1, 2, 3, 4, 6, 8, 12, or 24), presumably so that each day has the same schedule (otherwise, you would get a "spill" over into the next day).
Examples
Example 1: every 5 minutes from 10:00 to 14:00
If the job starts at 1000, and takes 6 minutes, then it will run 1000, 1010, 1020, ..., because the 1005,1015, ..., jobs were skipped because they were still running.
Direct quote:
Because the start time of a job is strict, if an instance of a job
runs longer than the defined time interval, then the Cron service can
skip a job. An individual start time in the interval can be skipped if
the prior job has not completed or times out.
Example 2: every 2 hours synchronized
Runs 0000,0200,0400, ..., 2200.
Custom Intervals
These specify intervals on the day or month level, and cannot specify sub-daily intervals.
TYPE
Using every specifies a repeating interval:
every day 06:00
every monday
every tuesday
...
every sunday
Specific days can be specified with ordinal numbers (1st, 2nd, 3rd, OR, first, second, third, ..., up to 31st OR thirtyfirst)
1st,3rd tuesday
2nd, third wednesday of month 09:00
Note that the ordinal number and words can be mixed.
INTERVAL_VALUE
Valid days are any mix of the following:
monday or mon
tuesday or tue
wednesday or wed
thursday or thu
friday or fri
saturday or sat
sunday or sun
day for all days of the week
INTERVAL_SCOPE
Can include
of month [HH:MM]
of jan,feb,sep,nov [HH:MM] i.e. a comma-separated list of months
Note, a time must be given with any given month, with HH and MM given as above (00-23 and 00-59, respectively). If "of" is excluded, the job runs every month.
Allowed values:
january or jan
february or feb
march or mar
april or apr
may
june or jun
july or jul
august or aug
september or sep
october or oct
november or nov
december or dec
month for all months in the year
Examples
2nd monday,thu
1,8,15,22 of month 09:00
1st mon,wednesday,thu of sep,oct,nov 17:00
Note, there is no documentation that could be found describing the time a job runs when the time is not explicitly specified (e.g. 2nd monday,thu).
General Examples
second monday,thu -> "Custom Interval"
third, twentysecond, 30th mon -> "Custom Interval"
1 of jan,april,july,oct 00:00 -> "Custom Interval"
1st monday of sep,oct,nov 09:00 -> "Custom Interval"
1st,third monday of month 04:00 -> "Custom Interval"
1,8,15,22 of month 09:00 -> "Custom Interval"
every monday 09:00 -> "Custom Interval"
every 5 minutes from 10:00 to 14:00 -> "Start-time Interval"
every 1 hours from 08:00 to 16:00 -> "Start-time Interval"
every 2 hours synchronized -> "Start-time Interval"
every 5 minutes -> "End-time Interval"
every 1 hours -> "End-time Interval"
IMPORTANT:
Interval types are chosen implicitly when you enter the schedule
You can't mix and match the options for the different interval types.
All specified times are UTC
As said in the intro above, this information is essentially ripped from the existing documentation, but I felt that was buried away and that this question deserved a "stand alone" reference text.
Form the official documentation:
When selecting Custom, a Cron-like time specification is expected, for
example every 3 hours. The shortest allowed period is fifteen minutes.
See the schedule field under TransferConfig for additional valid API
values.
The expected format is "Cron-like" but not pure Cron. Replace your Cron syntax with every 6 hours and this will work (note that this is UTC time), see example below:

Cron Expression for Hour:Minute to Hour:Minute

I am using Cron Expressions with Quartz.NET, and having a problem generating the cron expression for a Start Hour:Minute and End Hour:Minute
If I have a Job I want to run every 5 minutes from 10:20 AM to 11:25 AM what should be the correct cron expression,
At the moment I have this: 0 20-25/5 10-11 1/1 * ? *
But this only runs at 10:20, 10:25, 11:20 and 11:25
1 Monday, June 6, 2016 11:20 AM
2 Monday, June 6, 2016 11:25 AM
3 Tuesday, June 7, 2016 10:20 AM
4 Tuesday, June 7, 2016 10:25 AM
5 Tuesday, June 7, 2016 11:20 AM
6 Tuesday, June 7, 2016 11:25 AM
7 Wednesday, June 8, 2016 10:20 AM
8 Wednesday, June 8, 2016 10:25 AM
9 Wednesday, June 8, 2016 11:20 AM
10 Wednesday, June 8, 2016 11:25 AM
But what it should do is run from 10:20 AM till 11:25 AM, every five minutes
10:20, 10:25, 10:30, 10:35, 10:40 ....... 11:20, 11:25
Quartz does exactly what you Cron expression is saying, ie every 5 minutes between minutes 20 and 25 included for hours 10 and 11. And there is no way to achieve this with one Cron expression only...
This is usually done using a trigger with daily time interval schedule (TriggerBuilder.Create().WithDailyTimeIntervalSchedule(...)) with 10:20 as daily start time, 11:25 as daily end time and with a 5 minutes interval.
If your trigger HAD TO be fired only on minutes 0 or 5, also add to the trigger a misfire instruction policy to avoid time shifting in case of recovery (See https://dzone.com/articles/quartz-scheduler-misfire)

Quartz cron trigger for every 2 weeks and 2 times a day ( 6 AM and 6PM)

I want to run a quartz job for every 2 weeks at morning 6'o clock and evening 6'o clock . how to achieve this .please advice.
I tried to schedule using below cron expression
01 01 1 1-0/14 01 ? *
but the next fire times are as below.
Sunday, January 1, 2017 1:01 AM
Sunday, January 15, 2017 1:01 AM
Sunday, January 29, 2017 1:01 AM
Monday, January 1, 2018 1:01 AM
Monday, January 15, 2018 1:01 AM
There are some kinds of date triggers cron is good at. Every N days is often not one of them. For instance, if you use something like this:
0 0 6,18 */14 * ?
You might get something like this:
Tuesday, March 29, 2016 6:00 AM
Tuesday, March 29, 2016 6:00 PM
Friday, April 1, 2016 6:00 AM
Friday, April 1, 2016 6:00 PM
Friday, April 15, 2016 6:00 AM
Friday, April 15, 2016 6:00 PM
As you can see, the 29th, followed by the 1st -- not exactly fourteen days apart.
It's useful to have something that lets you play with the expression and see the resulting dates. CronMaker can do that, if that's helpful.
However, since you say you are using Quartz, it supports other kinds of triggers, like DateIntervalTrigger that might be better suited for what you're looking for?

Excel: auto format time of day when inputting time

I'm inputting time in and time out logs for my business to calculate the total hours worked by individual contractor companies visiting my site. We operate from 6:30am to 5pm. Excel automatically formats the data as AM, except for 12:00-12:59 which it correctly assumes is PM. I need excel to recognize that any time between 12:00 and 5:00 is PM. This will save me from having to type PM for each "time out" which over the course of a year will save me hours.
I'm not really sure how to do this. I'm guessing an if/then macro?
You can change the cell format as shown below:
when you type 17:00 is correctly displayed as 5:00 PM
I just use military time to get around this problem. 5 PM is not 5:00, but rather 17:00. Then you don't need to put in a PM or anything. Note: This is just for inputting the time. You can still display the time as 5:00 PM or whatever by formatting those cells or columns as the 'Time' type.
1 PM = 13:00
2 PM = 14:00
3 PM = 15:00
4 PM = 16:00
5 PM = 17:00
6 PM = 18:00
etc.

Resources