Skip to content

Display the current date/time in the given FORMAT, with support for Hijri (Islamic) date.

Notifications You must be signed in to change notification settings

Med-Salem-Gzizou/hijridate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hijridate

Display the current date/time in the given FORMAT, with support for Hijri (Islamic) date.

Installation

cd hijridate
make
./hijridate -h

Usage

Usage: hijridate [OPTION] [+FORMAT]
Display the current date/time in the given FORMAT.

OPTION:

  -h, --help     display this help and exit
      --version  output version information and exit

FORMAT: controls the output.  Interpreted sequences are:
        must start with +

Hijri (Islamic):
  %HY   hijri year
  %HM   hijri month (01..12)
  %HD   hijri day of month (e.g., 01)
  %HA   locale's full weekday name (e.g., Ahad)
  %HB   locale's full month name (e.g., Ramadan)
  %Ha   locale's abbreviated weekday name (e.g., Ahd)
  %Hb   locale's abbreviated month name (e.g., Ram)
Gregorian (Christian):
  %GY   greforian year
  %GM   greforian month (01..12)
  %GD   greforian day of month (e.g., 01)
  %GA   locale's full weekday name (e.g., Sunday)
  %GB   locale's full month name (e.g., January)
  %Ga   locale's abbreviated weekday name (e.g., Sun)
  %Gb   locale's abbreviated month name (e.g., Jan)
Time:
  %h    hour (00..23)
  %m    minute (00..59)
  %s    second (00..60)


Examples:
  $ hijridate '+%HY %HM %HD %h:%m:%s'

About

Display the current date/time in the given FORMAT, with support for Hijri (Islamic) date.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published