-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SorrTask584_Use_str_to_timestamp_instead_of_timestamp_as_str_to_times…
…tamp (#585) * Replaced timestamp_as_str_to_timestamp() with str_to_timestamp() * Update Resolve * Function parameter update * Update issues * Changes * Working script * Fixed tests * Ran linter * Added datetime_format parameter --------- Co-authored-by: Shabarish Nair <shabarishnair2020@gmail.com> Co-authored-by: Nina Lee <68428519+rheenina@users.noreply.github.com>
- Loading branch information
1 parent
99ee4d6
commit acf0de6
Showing
5 changed files
with
48 additions
and
20 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
...anup_scripts/SorrTask584_Use_str_to_timestamp_instead_of_timestamp_as_str_to_timestamp.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash -xe | ||
|
||
dir_names="amp/dev_scripts/cleanup_scripts dev_scripts/cleanup_scripts" | ||
|
||
replace_text.py \ | ||
--old "(?<!def\s)(?<!\.)(\btimestamp_as_str_to_timestamp\b)" \ | ||
--new "hdateti.str_to_timestamp" \ | ||
--exclude_dirs "$dir_names" \ | ||
--ext "py,ipynb" | ||
|
||
replace_text.py \ | ||
--old "omreconc.timestamp_as_str_to_timestamp" \ | ||
--new "hdateti.str_to_timestamp" \ | ||
--exclude_dirs "$dir_names" \ | ||
--ext "py,ipynb" | ||
|
||
replace_text.py \ | ||
--old "oms.timestamp_as_str_to_timestamp" \ | ||
--new "hdateti.str_to_timestamp" \ | ||
--exclude_dirs "$dir_names" \ | ||
--ext "py,ipynb" |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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