-
Notifications
You must be signed in to change notification settings - Fork 1
Listing DSU entries
You can list DSU entries for a particular day or date using any of the following commands. When displaying DSU entries for a particular day or date, dsu
will display the DSU entries for the given day or date, as well as the DSU entries for the previous day, relative to the given day or date. If the given day or date falls on a weekend or Monday, dsu
will display any entries for the preceding weekend and Friday; this is so that you can share any activities that occurred over the weekend (if anything) as well as any activities for the previous Friday.
dsu list today
-
dsu l n
# Equivalent to the above, only using shortcuts dsu list tomorrow
-
dsu l t
# Equivalent to the above, only using shortcuts dsu list yesterday
-
dsu l y
# Equivalent to the above, only using shortcuts dsu list date DATE|MNEMONIC
-
dsu l d DATE|MNEMONIC
# Equivalent to the above, only using shortcuts dsu list dates OPTIONS
-
dsu l dd OPTIONS
# Equivalent to the above, only using shortcuts
The following displays the entries for "Today", where Time.now == '2023-05-06 08:54:57.6861 -0400'
dsu list today
dsu l t # Equivalent to the above, only using shortcuts
![image](https://private-user-images.githubusercontent.com/346917/294724375-4f4264d6-61d9-4006-9d83-11149c001207.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTMwMzIsIm5iZiI6MTcyNjA5MjczMiwicGF0aCI6Ii8zNDY5MTcvMjk0NzI0Mzc1LTRmNDI2NGQ2LTYxZDktNDAwNi05ZDgzLTExMTQ5YzAwMTIwNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNmUxYzAyNzE1Njg3MGU3Zjc2MDFhZjkyMDk2ZDc2MTE4N2ZkMDcyMTM0ZTc3NjMxYjU4YTRhMGU0MDU1MjNiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.us2STLs7ZYKBxhXVN2ifSUzksl_vrHJryhSdHLNtq-c)
The following displays the entries for September 11, 2023 (which happens to be a Monday).
dsu list date 9/11/2023
dsu l d 9/11/2023 # Equivalent to the above, only using shortcuts
dsu l d 9/11
# When omitting YYYY, MM/DD is assumed
![image](https://private-user-images.githubusercontent.com/346917/294724498-9e0d1c6f-7d36-4327-b949-0e3588e04bf6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTMwMzIsIm5iZiI6MTcyNjA5MjczMiwicGF0aCI6Ii8zNDY5MTcvMjk0NzI0NDk4LTllMGQxYzZmLTdkMzYtNDMyNy1iOTQ5LTBlMzU4OGUwNGJmNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNTkyMDgzN2Y3NDZjODIyMjIyNmRhNTY4NGQ4MmRmNmZjNzQ1MmRlNmM4OWM5ZDcxYjY1ODBkYzdjODA0Yjc4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kqhV3sXXGhwFnsSggFUh6BfWVVLpHNpHDZAGf7W3tdY)
See Dates, MNEMONICS and relative date MNEMONICS for more information.
dsu list dates --from yesterday --to -2
dsu l dd -f y -t -2 # Equivalent to the above, only using shortcuts
dsu list dates --from 1/1 --to +3
dsu l dd -f 1/1 -t +3 # Equivalent to the above, only using shortcuts
dsu list dates --from 1/5 --to -3
dsu l dd -f 1/5 -t -3 # Equivalent to the above, only using shortcuts
dsu list dates --from today --to -6
dsu l dd -f n -t -6 # Equivalent to the above, only using shortcuts
dsu list dates --from -7 --to +6
dsu l dd -f -7 -t +6 # Equivalent to the above, only using shortcuts
The above example is silly, but it illustrates the fact that you can use relative mnemonics for both --from
and --to
options. While you can use relative mnemonics for both the --from
and --to
options, there is usually a more intuitive way; for example:
This can be accomplished MUCH easier by using the yesterday
mnemonic. This will display the back 1 week from yesterday's date.
dsu list dates --from yesterday --to -6
dsu l dd -f y -t -6 # Equivalent to the above, only using shortcuts
It there are no entries to display, dsu
will display...
![image](https://private-user-images.githubusercontent.com/346917/294724846-94b9af98-c9f8-4d85-bc49-28446b2b58d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTMwMzIsIm5iZiI6MTcyNjA5MjczMiwicGF0aCI6Ii8zNDY5MTcvMjk0NzI0ODQ2LTk0YjlhZjk4LWM5ZjgtNGQ4NS1iYzQ5LTI4NDQ2YjJiNThkNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNGRkOGQxNzAzNWI5ZjY2Yjk2ZGM3ZDQ3MDc5NDkzMWI5OGQzYjFjZDNmOGE5Yjk4ZmI5Mjg1Y2NkN2QwMjE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.n4uwXjIIBx-SDGgTncA4riJQnsh1iHe_7RVQDmUMAkU)
You can force dsu
to display empty Entry Groups by using the -a
| --include-all
The below example would normally only display entry groups for 9/8/2023 and 9/11/2023 since they are the only entry groups with entries for the given range (9/8/2023 - 9/11/2023); however, using the -a
| --include-all
option forces display of the entry groups with no entries.
![image](https://private-user-images.githubusercontent.com/346917/294724943-c8a3c7d8-ebe1-4bcf-be78-16fbe98193b6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTMwMzIsIm5iZiI6MTcyNjA5MjczMiwicGF0aCI6Ii8zNDY5MTcvMjk0NzI0OTQzLWM4YTNjN2Q4LWViZTEtNGJjZi1iZTc4LTE2ZmJlOTgxOTNiNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMjEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YzQ4NmIxNjA2ZGNmMDdiNzEyNzVkN2FkMzJjMjRjYTc0YTUyZjhiNDYyNTNmZDJkNWNmZGI2MzY2ZDIwNTBhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.alSKqPOXRNkAW3QIRzhzCaT-THAxiocdghbZ12nWci4)
See the Dates, MNEMONICS and relative date MNEMONICS wiki for more information on acceptable DATE formats used by dsu
, MNEMONICS and relative date MNEMONICS.