You are here

Time Rule Problem in Trouble

5 posts / 0 new
Last post
bahala520
Offline
Joined: 7 years
Last seen: 5 years
Time Rule Problem in Trouble

We need to grab "startTime": "**** AM" and "endTime": "*** PM", this part of time, not "start":***********, "end":*********, "how should the rules be written?

Attachments: 
bahala520
Offline
Joined: 7 years
Last seen: 5 years

we can't grab data in this way. This time field contains AM or PM.

scope.range{(indexshowdetails)|end}
index.start.scrub {regex||startTime":"(\d{2}:\d{2})||}
index.stop.scrub {regex||endTime":"(\d{2}:\d{2})||}
index_title.scrub {single|"name":"||"|"}

bahala520
Offline
Joined: 7 years
Last seen: 5 years

I have a problem with my machine system. The UTC timestamp is invalid, so I need to grab AM/PM parts,Is there any way to grab AM/PM parts?

bahala520
Offline
Joined: 7 years
Last seen: 5 years

message:
[Error ] Current culture: en-GB
[Error ] time parsing error : The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.
[Error ] startdatetime time scrubbed : Morning 01:35
[Error ] computer date/time format: 31/01/2019 17:18:34
[ Info ] Existing guide data restored!

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 week

(pattern="hh:mm tt")
not
(pattern="HH:mm tt")

HH:mm ==> 01 to 24 ex 09,10,11,12,13,14...21,22,23,24
hh:mm ==> 01 to 12 ex 09,10,11,12,01,02...09,10,11,12

the pattern isnt even needed,webgrab has no problem reading this time format as it is.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl