You are here

How to get time from xml

6 posts / 0 new
Last post
janKO
Offline
Donator
Joined: 10 years
Last seen: 9 hours
How to get time from xml

I have some xml files with this tag:

<programme start="20160914090000Z" stop="20160914105520Z" channel="XYZ">

How to get start and stop time?

And How to start with today date and not yesterday?

 

janKO
Offline
Donator
Joined: 10 years
Last seen: 9 hours

first test is OK, thanks @Blackbear199 yes

new xml file start with first show today ...

 

I have new problems with this:

   <StartTime>2016-10-01T06:00:00.0000000+02:00</StartTime>

How to get new xml file start with 1.october???

​If i use this:

index_start.scrub {single|<StartTime>|T|:00<|/StartTime>}

I got complete new xml file but  with wrong date: today is 25.9....tomorrow wil be start 26.9. ...

 

If i change computer time to 1. october then eveything is OK...
 

 

 

janKO
Offline
Donator
Joined: 10 years
Last seen: 9 hours

Hi @Blackbear199

In first case with regex the date is always today and time is 000000 

In second case I got only 27 days (october full month)..

In zip file you have original xml for october...

janKO
Offline
Donator
Joined: 10 years
Last seen: 9 hours

Summertime +2 till 29.10 and then 30.10 is normal UTC +1...

so WG++ has limit max 31 days....

this new ini has UTC time and I need CET (UTC+2)

 

 

 

janKO
Offline
Donator
Joined: 10 years
Last seen: 9 hours

OK thanks yes

Can you contact Jan and ask him if can increases max days to 50...

janKO
Offline
Donator
Joined: 10 years
Last seen: 9 hours

If Jan can increase max days to 50 ASAP I can try if WG++ properly processed DST...

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