Page 1 of 1
About getTimestamp.bat
Posted: 19 Jan 2017 03:12
by kero
Dear
dbenham,
as it turned out, getTimestamp.bat -
can handle the format
2016-11-14T08:09:58.886317071-08:00,
but can't handle the format
2016-11-14T16:09:58.886317071Z:
after
Code: Select all
for /f %%a in ('getTimestamp -D "^'%server_date%^'"') do set your_date=%%a
we get message "Invalid -D value"
(this is from "Periscope Downloader v2.1": batch-file, which uses getTimestamp.bat, -
https://github.com/nikisby/periscope.tv).
Could you add to old good getTimestamp processing the specified format?
Thanks.
Re: About getTimestamp.bat
Posted: 19 Jan 2017 05:05
by Compo
First suggestion is to try the last version of
getTimestamp.bat, (v2.6), from
here.
Alternatively, you could try the new incarnation,
jTimestamp.bat from
here.
If neither fix your issue, post back.
Re: About getTimestamp.bat
Posted: 19 Jan 2017 09:38
by kero
@Compo
tried: getTimestamp-v2.6 or jTimestamp - can't...
Re: About getTimestamp.bat
Posted: 19 Jan 2017 15:43
by ShadowThief
Can't...?
Re: About getTimestamp.bat
Posted: 19 Jan 2017 23:29
by kero
Please delete this my topic, because it turned out that the cause of the error is not in the getTimestamp, but in the periscope downloader, - sorry!
Re: About getTimestamp.bat
Posted: 21 Jan 2017 20:16
by dbenham
Yes - Neither getTimestamp.bat nor jTimestamp.bat were designed to support ISO8601 format with the -D option. But it is a good idea. I am working on enhancing jTimestamp.bat now. I think I've got it, but I've got a whole lot of regression testing to do. I will post the updated version on the main
jTimestamp thread.
Dave Benham
Re: About getTimestamp.bat
Posted: 22 Jan 2017 09:20
by kero
it would be great!
Re: About getTimestamp.bat
Posted: 23 Jan 2017 23:45
by dbenham
I've released version 2.0 of jTimestamp.bat with the new ISO8601 format support added to the -D option.
viewtopic.php?f=3&t=7523&p=49958#p50908I am no longer developing getTimestamp.bat, so I will not add the feature there.
Dave Benham
Re: About getTimestamp.bat
Posted: 25 Jan 2017 21:23
by kero
Thank you very much, Dave!
Could you also show how to right use jTimestamp to the input value from the initial post of this topic - "2016-11-14T16:09:58.886317071Z" ?
Re: About getTimestamp.bat
Posted: 25 Jan 2017 21:32
by Squashman
kero wrote:Thank you very much, Dave!
Could you also show how to right use jTimestamp to the input value from the initial post of this topic - "2016-11-14T16:09:58.886317071Z" ?
Did you not read his post?
viewtopic.php?t=7523#p50908
Re: About getTimestamp.bat
Posted: 26 Jan 2017 20:23
by kero
You're right - I missed, thanks you.
So now I have needful string:
for /f %%a in ('jTimestamp -D "ISO %date_time%"') do set your_date=%%a
Great work, Dave!