Created
March 7, 2022 12:38
-
-
Save mark-lumbao/05db7dd0bf2ce998a526b04497317f01 to your computer and use it in GitHub Desktop.
Date difference calculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
############################## | |
# Date Difference Calculator # | |
# Dependency: nodejs # | |
############################## | |
echo "console.log(Math.round((new Date('$2').getTime() - new Date('$1')) / 86400000), 'days')" | node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment