Skip to content

Instantly share code, notes, and snippets.

@askedrelic
Last active November 22, 2020 19:41
Show Gist options
  • Select an option

  • Save askedrelic/871b07074f890d48e7f95b5b97f66344 to your computer and use it in GitHub Desktop.

Select an option

Save askedrelic/871b07074f890d48e7f95b5b97f66344 to your computer and use it in GitHub Desktop.

Revisions

  1. askedrelic revised this gist Nov 22, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion scratch-format-cmd.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    # 90 days, scratch format, +/- 5days
    python -c "from __future__ import print_function; import arrow; dates = [arrow.now().replace(days=x-5).format('dddd M/D/YY') for x in range(100)]; [print(x) for x in dates]"
    # py3 + arrow 0.17 compat
    python -c "import arrow; dates = [arrow.now().shift(days=x-5).format('dddd M/D/YY') for x in range(100)]; [print(x) for x in dates]"
  2. askedrelic revised this gist Jan 2, 2018. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  3. askedrelic renamed this gist Jan 2, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. askedrelic revised this gist Jan 2, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions scratch-format-cmd.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # 90 days, scratch format, +/- 5days
    python -c "from __future__ import print_function; import arrow; dates = [arrow.now().replace(days=x-5).format('dddd M/D/YY') for x in range(100)]; [print(x) for x in dates]"
  5. askedrelic revised this gist Aug 15, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions scratch-format.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    import arrow;
    dates = [arrow.now().replace(days=x).format('dddd M/D/YY') for x in range(90)]
    for x in dates: print x
  6. askedrelic created this gist Aug 15, 2017.
    3 changes: 3 additions & 0 deletions dates.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    import arrow
    dates = [arrow.now().replace(days=x).format('YYYY-MM-DD') for x in range(90)]
    for x in dates: print x
    1 change: 1 addition & 0 deletions dates.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    python -c "from __future__ import print_function; import arrow; dates = [arrow.now().replace(days=x).format('YYYY-MM-DD') for x in range(90)]; [print(x) for x in dates]"