Converting a column of date and time of day into running seconds - pandas

I am just wondering if there is a way that I can convert the contents of the column described in the picture I have attached to a total of running seconds where the first row is of course zero seconds so that the next row would be ~8220 seconds and so on. This would make the analysis of time-series data much easier for me.
Picture

Related

Formatting Cells to highlight after a specific time period has elapsed

I am trying to resolve an issue regarding my workplace in google sheets. I am looking to highlight cells in a specific column after a specific time has elapsed. This column is going to consist of time stamps. What I am trying to do is once 15 minutes of the cell's timestamp to highlight it red as a notifier for the user of the sheet to proceed with a process. There is no way to do this with normal Conditional formatting and look clean. I am not sure as to where to start other than I can basically do this by making a script using Google Sheets script editor. I just need a push in the direction.
I have looked into normal Conditional Formatting built into Google Sheets and it can be done but you would have an End Time Column basically incremented 15 minutes after the original time stamp using the today() formula. However this is cluttered and ideally isn't as seemless I would like it to be.
I am looking to write a script to automatically highlight the timestamp red once the current time is at least 15 minutes or older. Without the end column it doesn't work and ultimately I am trying to keep from having extra columns when they are not needed. I am not sure where to start. Just looking for opinions on how to start this.

Set up a dynamic working range in VBA

So I have a data which is basically a working hours calculation. The excel data consists of Day and time but for some reason the time is doubling in some cells:
My task is to find the working hours in each day by take the "end time" minus the "begin time" and I intended to do it by using MAX(range)- MIN(range) and loop it for each day.
But I don't know how to define the range that consist data of each day. As you see 01-07 could have 3 rows but 02-07 could have 4 rows of data
Can anyone help me to solve it using VBA?

Divide time column in time spans based on several columns

So far I have managed fine using Excel's formulas, so I might not need VBA to solve this problem.
I want to create time spans in column V based on the times in column O. The time spans are: 00-05, 05-07, 07-09, 09-15, 15-18 and 18-00. Thus far I have been using the formula (example for row 25):
=IF([#Old]="","",IF([#Old]*24<5,"00-05",IF([#Old]*24<7,"05-07",IF([#Old]*24<9,"07-09",IF([#Old]*24<15,"09-15",IF([#Old]*24<18,"15-18","18-00"))))))
But I want the time spans to be conditional on column M as well, so that fx the time spans for rows 41 to 42 should still be 05-07, because they are in the batch that started in 05-07 (row 31). I have uploaded what the result should look like in the picture below. I also have a column that counts the start and end of the batch (from 1 and upwards). This might help to solve the issue, but I'm not sure how to do the expand the conditional if-statement.
Try this (this works from cell F2, since other rows are being checked - M1 and R1 in this case, which have no simple reference in a teble-ish way):
=IF([#batch]<>M1,IF([#Old]="","",IF([#Old]*24<5,"00-05",IF([#Old]*24<7,"05-07",IF([#Old]*24<9,"07-09",IF([#Old]*24<15,"09-15",IF([#Old]*24<18,"15-18","18-00")))))),V1)
Basically I added an extra if to check if it is a new batch.
IF([#batch]<>M1,(do the long calculation), (use the same value as above))

SQL data type time

Is it possible to create a data type in SQL similar to time that only displays the hour and minutes instead of the hour, minutes and seconds.
For example, If I inserted values into a table with the data type time I would get hh:mm:ss. How could I insert a value that only displays hh:mm?
Use TIME. More generally, the format in which you want something displayed should not affect your decision of the format in which it should be stored.

Time column average in access database

I have an access database one table has time column that shows the total time from (endtime - starttime) I need to have that column averaged (hh:mm) ss not needed. I need to store this average into another table, and then be able to display that in a textbox. with conditional formating as far as color for certain time ranges. I'm going to need to do this for a daily range and a monthly range, just wonder what would be the best way to accomplish this. this monthly and daily average will need to update each time the table has records added to it.
My thoughts on this was pull the daily times into an array, then average the array, and store that average in another table. Then use the daily average table to display in a textbox, along with the conditional formatting. and then the same thing for the monthly time average as well.
It is by no means difficult to obtain this information from a query, time is just the decimal portion of a number.
SELECT Format(Avg(CDbl([Atime2])-CDbl([ATime1])),"hh:mm:ss") AS Diff
FROM Table;
Or
SELECT Sum(DateDiff("n",[ATime1],[ATime2])) AS SumMins,
Count([ATime1]) AS CountRecs,
Avg(DateDiff("n",[ATime1],[ATime2])) AS AvgMins
FROM Table;
Furthermore, MS Access 2010 has data macros and calculated columns that are good even outside of Access.
Finally, it is not generally recommended that you store a value that becomes invalid at every edit when the value can easily be calculated.