mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
make backup timestamps windows-compatible
This commit is contained in:
parent
1c8eef910d
commit
41fd5c7b55
1 changed files with 2 additions and 2 deletions
|
|
@ -557,12 +557,12 @@ def main():
|
||||||
"--peek", required=False, help="Inspect an address", type=auto_int, metavar=('ADDR')
|
"--peek", required=False, help="Inspect an address", type=auto_int, metavar=('ADDR')
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--output", help="Output file name. Defaults to ./backup_<current_iso_time>.pddb", type=str, default=None
|
"--output", help="Output file name. Defaults to ./backup_<current_time>.pddb", type=str, default=None
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.output is None:
|
if args.output is None:
|
||||||
ofile = "backup_{}.pddb".format(datetime.now().isoformat())
|
ofile = "backup_{}.pddb".format(datetime.now().strftime('%Y%m%d_%H%M%S'))
|
||||||
else:
|
else:
|
||||||
ofile = args.output
|
ofile = args.output
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue