October 19

Measure your working time on windows


For measure working time on windows I wrote a little script. It calculates the time since the last login. The output of the script looks like this:

The script is written in Ruby and runs under cygwin. I saved the script in a folder tools in my homedir and have the following alias in my .bashrc:

So finally the script looks like this:

Known issues:

The script is based on the windows command systeminfo. Systeminfo returns values in the language of the operating system. So this works only with a german windows. Replace “Systembetriebszeit” with whatever your systeminfo command returns for the uptime.


Workingtime.rb moves to github. Follow the installation instructions there.


cygwin, Ruby, windows

You may also like

Blog url changed to https

Format date and time in java with prettytime

Leave a Reply

Your email address will not be published. Required fields are marked *

Information about Data protection

This site uses Akismet to reduce spam. Learn how your comment data is processed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Subscribe to our newsletter now!