All Projects → pouriya → tir

pouriya / tir

Licence: other
Have time.ir in shell!

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to tir

iso8601
A fast ISO8601 date parser for Go
Stars: ✭ 122 (+7.02%)
Mutual labels:  time, date
FM-JSON-Types
FileMaker Data Types in JSON
Stars: ✭ 14 (-87.72%)
Mutual labels:  time, date
jodaTime
Format and Parse date and time with joda layout
Stars: ✭ 67 (-41.23%)
Mutual labels:  time, date
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (-77.19%)
Mutual labels:  time, date
island-time
A Kotlin Multiplatform library for working with dates and times
Stars: ✭ 69 (-39.47%)
Mutual labels:  time, date
ptera
Ptera is DateTime library for Deno
Stars: ✭ 62 (-45.61%)
Mutual labels:  time, date
date-extractor
Extract dates from text
Stars: ✭ 58 (-49.12%)
Mutual labels:  time, date
React Native Modal Datetime Picker
A React-Native datetime-picker for Android and iOS
Stars: ✭ 2,412 (+2015.79%)
Mutual labels:  time, date
temps-lite
A smart, good-looking little app which tries to speak your language the way you are used to.
Stars: ✭ 40 (-64.91%)
Mutual labels:  time, date
timelite
String date and time utilities 🕙
Stars: ✭ 17 (-85.09%)
Mutual labels:  time, date
Travel
Framework agnostic PHP package to control the time.
Stars: ✭ 251 (+120.18%)
Mutual labels:  time, date
kronos
Management of arithmetic operations on dates
Stars: ✭ 23 (-79.82%)
Mutual labels:  time, date
Jiffy
Jiffy is a Flutter (Android, IOS and Web) date time package inspired by momentjs for parsing, manipulating, querying and formatting dates
Stars: ✭ 238 (+108.77%)
Mutual labels:  time, date
SonataTimelineBundle
[Abandoned] Integrates SpyTimelineBundle into Sonata
Stars: ✭ 24 (-78.95%)
Mutual labels:  time, date
Sonataintlbundle
Symfony SonataIntlBundle
Stars: ✭ 212 (+85.96%)
Mutual labels:  time, date
lit-date
Light-weight, faster datetime formatter for modern browsers.
Stars: ✭ 33 (-71.05%)
Mutual labels:  time, date
Date
A date and time library based on the C++11/14/17 <chrono> header
Stars: ✭ 2,389 (+1995.61%)
Mutual labels:  time, date
Dpicker
A framework-agnostic minimal date picker
Stars: ✭ 187 (+64.04%)
Mutual labels:  time, date
duration
Parse iso8601 duration strings, and use to shift dates/times.
Stars: ✭ 51 (-55.26%)
Mutual labels:  time, date
time machine
A date and time API for Dart
Stars: ✭ 120 (+5.26%)
Mutual labels:  time, date

tir

Have time.ir in shell!

tir

Installation

Download

Using git:

~ $ git clone --depth 1 --branch 20.07.26 https://github.com/Pouriya/tir && cd tir
~/tir $

Using wget:

~ $ wget https://github.com/Pouriya/tir/archive/20.07.26.tar.gz && tar xf 20.07.26.tar.gz && cd tir-20.07.26
~/tir-20.07.26 $

Dependencies

First you need to have Python 3.^5 installed. Most of other dependencies are by default installed on most Linuxes.

  • setuptools
    On most linux distributions:
    ~ $ sudo apt install python3-setuptools
    On FreeBSD:
    ~ # pkg install py36-setuptools
  • requests
    On most linux distributions:
    ~ $ sudo apt install python3-requests
    On FreeBSD:
    ~ # pkg install py36-requests
  • lxml
    On most linux distributions:
    ~ $ sudo apt install python3-lxml
    On FreeBSD:
    ~ # pkg install py36-lxml
    Note that lxml itself needs libxml2 and libxslt to compile.

Note that on FreeBSD it's better to link your python3.* to python3:

~ # ln -s /usr/local/bin/python3.6 /usr/local/bin/python3

Or edit Makefile and first line of ./bin/crawler.py and place your own Python 3 command

Notification is not show for you?

just run this command to reinstall or install libraries to solve the problem:

~ $ sudo apt-get --reinstall install libnotify-bin notify-osd

install tir itself

On Linux distributions run:

~/path/to/tir $ sudo make install

On FreeBSD you need gmake instead of make:

~/path/to/tir # gmake install

Then you have tir command everywhere:

/x/y/z $ tir
Emruz: 3-Shanbeh  15   Aban(08)   1397   Pa'eez  
Today:  Tuesday   06 November(11) 2018   Autumn  
System time: 00:04:03
 ________  ________  ________  ________  ________  ________  ________
| Shanbe ||  Yek   ||   Do   ||   Se   || Chahar ||  Panj  || Jom'eh |
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   28   ||   29   ||   30   ||   01   ||   02   ||   03   ||   04   |
| 10  20 || 11  21 || 12  22 || 13  23 || 14  24 || 15  25 || 16  26 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   05   ||   06   ||   07   ||   08   ||   09   ||   10   ||   11   |
| 17  27 || 18  28 || 19  29 || 20  30 || 21  31 || 22  01 || 23  02 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   12   ||   13   ||   14   ||   15   ||   16   ||   17   ||   18   |
| 24  03 || 25  04 || 26  05 || 27  06 || 28  07 || 29  08 || 01  09 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   19   ||   20   ||   21   ||   22   ||   23   ||   24   ||   25   |
| 02  10 || 03  11 || 04  12 || 05  13 || 06  14 || 07  15 || 08  16 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   26   ||   27   ||   28   ||   29   ||   30   ||   01   ||   02   |
| 09  17 || 10  18 || 11  19 || 12  20 || 13  21 || 14  22 || 15  23 |
|________||________||________||________||________||________||________|

Powered by http://time.ir

Uninstallation

On Linux distributions run:

~/path/to/tir $ sudo make uninstall

On FreeBSD you need gmake instead of make:

~/path/to/tir # gmake uninstall

Arguments

root@codefather:~/tir $ tir -h
Usage: tir [options]

Options:
  -h, --help       show this help message and exit
  -s, --solar      Does not show solar date
  -g, --gregorian  Does not show gregorian date
  -c, --calendar   Does not show calendar
  -t, --time       Does not show time
  -C, --color      Does not show colored text
  -q, --quote      Does not notify for quote
  -H, --holidays   Does not notify for holidays
  -a, --about      shows program's description and exits
  -u, --update-cache  if cache data exists, updates its data

So for example tir -s -g -c -C -q -H will result:

Emruz: 3-Shanbeh  15   Aban(08)   1397   Pa'eez  

Powered by http://time.ir

Contributing

I love pull requests from everyone ! For more info see CONTRIBUTING.md file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].