Giter Site home page Giter Site logo

datehotkey's Introduction

DateHotkey

GitHub release (latest by date) GitHub all releases GitHub Donate Donate

This Autohotkey Script should solve daily problems whith calculating dates. With this script you can easily retrieve the date of current, passed or comming days.

Read this in other languages: English, German

Installation

There are two ways to use the script.

  1. You download the DateHotkey.exe file from releases and run it.
  2. You download the DateHotkey.ahk and run it with a installed version of AutoHotkey.

Commands

German commands here

Command Description
#today[modifier] Date of current day
#yesterday[modifier] Date of yesterday
#tomorrow[modifier] Date of tomorrow
#mo(nday)[modifier] Date of monday this week
#tu(esday)[modifier] Date of tuesday this week
#we(dnesday)[modifier] Date of wednesday this week
#th(ursday)[modifier] Date of thursday this week
#fr(iday)[modifier] Date of friday this week
#sa(turday)[modifier] Date of saturday this week
#su(nday)[modifier] Date of sunday this week
#c(alendar)w(eek)[modifier] Current calendar week

You can type them in every text boxes, wherever you want.

Modifier

With the modifier, you can modifie the resulting date. There you can add or substract a specific amount of days, weeks, months or years. That means, if you need the date of monday next week or the calendar week in twenty days, you can easily get them by setting the modifier.

Modifier Regex:

([\+\-0-9]+(d(ays?)?|w(eeks?)?|m(onths?)?|y(ears?)?)?)+

Rules for Modifier

If you want to use the Modifier, you have to follow these rules

  • It must contain a valid number
  • After the number, you have to declare if you want days, weeks, months or years
    • If empty/not declared, default: weeks
      #monday4 - Monday in 4 weeks
  • Order isn't important, you can write as you want
    #sunday3y2d2w2d - Monday in 4 days, 2 weeks and 3 years

Examples

Example Description
#yesterday Date of yesterday
#saturday Date of saturday this week
#we Date of wednesday this week
#today+4days-6weeks Todays Date, plus 4 days and minus 6 weeks
#monday+4days-2days Date of monday in the week, comming in 2 days
#tu4days+6w Date of tuesday in the week, comming in 4 days and 6 weeks
#yesterday4d6w3months Yesterdays Date, plus 4 days, 6 weeks and 3 months
#tomorrow2y4d6w Tomorrows Date, plus 2 years, 4 days and 6 weeks
#su500d40y2m Date of sunday in the week, comming in 500 days, 40 years and 2 months
#calendarweek4w Calendar week in 4 weeks
#cw3d2w4m Calendar week in 3 days, 2 weeks and 4 months

Customization

You are able to configure the following options: Recognition Key: This will be the key, which is completing your DateHotkey sequence. (F.e. *#today\RETURN KEY\ or #tomorrow\TAB KEY\) Ending Key: This is the key, which will be pressed, after your sequence was replaced. Date Format: There you can configure your prefered formatting for the date string. Language: There you can configure your prefered language.

To access this options, right-click on the TrayIcon in the lower right corner of your taskbar.

Contributing

If you want to support this project, you have two options:

GitHub Sponsor: here

PayPal Donation: here

Thank you, for your contribution!

License

GitHub

Dependencies

Dependencie Source Author License
Hotstring source menixator Apache 2.0
GetDateFormatEx source jNizM Not given

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.