Skip to content

Instantly share code, notes, and snippets.

@CouldBeThis
Last active October 1, 2022 20:36
Show Gist options
  • Save CouldBeThis/2fb5a52933000d8d1d59f452c25b7e7f to your computer and use it in GitHub Desktop.
Save CouldBeThis/2fb5a52933000d8d1d59f452c25b7e7f to your computer and use it in GitHub Desktop.
time date

lsd: config.yaml

a bunch of options for lsd config

# == Date ==
# This specifies the date format for the date column. The freeform format
# accepts an strftime like string.
# When "classic" is set, this is set to "date".
# Possible values: date, relative, '+<date_format>'
# `date_format` will be a `strftime` formatted value. e.g. `date: '+%d %b %y %X'` will give you a date like this: 17 Jun 21 20:14:55
#date: '+%y %b %d'
#date: '%Y %b %d'
#date: '+%d %b %y %X'
#date: relative

## 1 Oct 2022 16:21pm
## 25 Sep 2022 15:40pm
#date: '+%-d %b %Y %-H:%M%P'

## 1 Oct 22 16:21pm
## 25 Sep 22 15:40pm
#date: '+%-d %b %y %-H:%M%P'

## compact
## 22-Oct- 1 16:25
## 22-Sep-25 15:40
#date: '+%y-%b-%e %-H:%M'

## compact; more even (includes leading zero in dates)
## 22-Oct-01 16:25
## 22-Sep-25 15:40
#date: '+%y-%b-%d %-H:%M'

## the most compact; just as I do manually
## 221001-1629
## 220925-1540
#date: '+%y%m%d-%-H%M'

## 12 hour clock
##   1 Oct 2022 4:20pm
##  25 Sep 2022 3:40pm
#date: '+%e %b %Y %-I:%M%P'

## 12 hour clock
##  1 Oct-22 4:31pm
## 25 Sep-22 3:40pm
date: '+%e %b-%y %-I:%M%P'

##  24 hour clock
##  1 Oct 2022 16:19
## 25 Sep 2022 15:40
#date: '+%e %b %Y %-H:%M'

##  24 hour clock with day of week
## Sat  1 Oct 2022 16:18
## Sun 25 Sep 2022 15:40
#date: '+%a %e %b %Y %-H:%M'
%a %e %I:%M%P

Thu 23 08:52pm

%H:%M | %A %d %B %Y

20:53 | Thursday 23 December 2021

terminal tells you the time in format date +"%A %B %-d at %l:%M %p"

date +"%A %B %-d at %l:%M %p" | flite_cmu_us_ahw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment