This is a little PowerShell script that helps you track your working hours by analyzing your machine's uptime. It reads the required information from the system log and outputs it as a table.
- Read and follow the instructions on PowerShell’s execution policy
then
- Start PowerShell
- Type
.\goodTimes.ps1
or
- Run
powershell.exe -file goodTimes.ps1
-historyLength
(Alias-l
) Number of days to show in uptime history. Defaults to30
.-workingHours
(Alias-h
) Working hours per day, used for overtime calculation. Defaults to8
.-lunchBreak
(Alias-b
) Length of lunch break in hours. This will be subtracted from your work time. Defaults to1
.-precision
(Alias-p
) Rounding precision in percent, where 1 = round to the hour, 2 = round to 30 minutes, etc. Defaults to4
.-dateFormat
(Alias-d
) Date format as defined in the .NET reference. Defaults toddd dd/MM/yyyy
.
Sorry, this version is in German only, so if you want some internationalization, you can easily edit the script.