About getTimestamp.bat

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
kero
Posts: 16
Joined: 12 Jul 2016 00:49
Location: Moscow

About getTimestamp.bat

#1 Post by kero » 19 Jan 2017 03:12

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.

Compo
Posts: 599
Joined: 21 Mar 2014 08:50

Re: About getTimestamp.bat

#2 Post by Compo » 19 Jan 2017 05:05

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.

kero
Posts: 16
Joined: 12 Jul 2016 00:49
Location: Moscow

Re: About getTimestamp.bat

#3 Post by kero » 19 Jan 2017 09:38

@Compo

tried: getTimestamp-v2.6 or jTimestamp - can't...

ShadowThief
Expert
Posts: 1160
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: About getTimestamp.bat

#4 Post by ShadowThief » 19 Jan 2017 15:43

Can't...?

kero
Posts: 16
Joined: 12 Jul 2016 00:49
Location: Moscow

Re: About getTimestamp.bat

#5 Post by kero » 19 Jan 2017 23:29

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!

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: About getTimestamp.bat

#6 Post by dbenham » 21 Jan 2017 20:16

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

kero
Posts: 16
Joined: 12 Jul 2016 00:49
Location: Moscow

Re: About getTimestamp.bat

#7 Post by kero » 22 Jan 2017 09:20

it would be great!

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: About getTimestamp.bat

#8 Post by dbenham » 23 Jan 2017 23:45

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#p50908

I am no longer developing getTimestamp.bat, so I will not add the feature there.


Dave Benham

kero
Posts: 16
Joined: 12 Jul 2016 00:49
Location: Moscow

Re: About getTimestamp.bat

#9 Post by kero » 25 Jan 2017 21:23

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" ?

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: About getTimestamp.bat

#10 Post by Squashman » 25 Jan 2017 21:32

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

kero
Posts: 16
Joined: 12 Jul 2016 00:49
Location: Moscow

Re: About getTimestamp.bat

#11 Post by kero » 26 Jan 2017 20:23

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!

Post Reply