inctime

command module
v0.0.0-...-80ee951 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 4 Imported by: 0

README

This is a Go program to change the system time on your Windows computer.

Example Usage
-------------

	inctime 5h       Add 5 hours to the current system time.
	inctime -5h      Subtract 5 hours from the current system time.
	inctime 24h      Add a day to the current system time.
	inctime 5h4m3s   Add 5 hours, 4 minutes and 3 seconds to the current system time.

Supported suffixes are h (hours), m (minutes), s (seconds) and ms (milliseconds).
The program will ask for administrator privileges to be able to change the time setting. Regular programs cannot change the system time on Windows.

Installation
------------

You need the Go programming language installed: https://golang.org/
Use the go tool to get the program:

	go get -u -ldflags="-H=windowsgui" github.com/gonutz/inctime

where -u is for getting the latest version online and -ldflags="-H=windowsgui" has Go build a Windows GUI program which does not open a console window if started from the "Run" dialog (Windows Key + R).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL