Can get_iplayer have UK Local ISO Date/Times?
#1
I'm running get_iplayer 3.12.0 from a Windows 7 command prompt.

I noticed a few years ago that the ISO date/times fields when using the --info option do not take account of UK local time switching between Coordinated Universal Time (UTC) and British Summer Time (BST).

For example,
Code:
C:\>get_iplayer -i --pid b09tmxv2 | findstr /r "^available: ^firstbcast: ^expires: ^title:"
produces:

get_iplayer Output:

available:      2018-02-27T22:30:00+00:00
expires:        in 27 days 21 hours (2018-03-29T22:30:00+00:00)
firstbcast:     2018-02-27T22:25:00Z
title:          The Archiveologists: Series 1: Telecommunications Services for the 1990s
Here the expires field gives the expiry date/time in UTC although the UK standard time will be BST. Running the same command after 2018-03-25T01:00:00Z (when the UK switches from UTC to BST) the output will be different, with the expires field showing the UK standard time: 2018-03-29T23:30:00+01:00. Similar inconsistencies occur around the time in October when UK standard time switches from BST to UTC.

The output isn't wrong, but I'd prefer to see:

get_iplayer Output:

available:      2018-02-27T22:30:00+00:00
expires:        in 27 days 21 hours (2018-03-29T23:30:00+01:00)
firstbcast:     2018-02-27T22:25:00+00:00
title:          The Archiveologists: Series 1: Telecommunications Services for the 1990s
so I know at a glance that I've got until 11.30pm on 29th March to grab the programme, without having to 1. spot that the expiry date is not in UK standard time, 2. try to remember whether I'm supposed to add or subtract an hour to convert the specified date/time to local time, and 3. perform the calculation.

If the get_iplayer distribution of Perl can't handle this, there must be a Perl module available that can be passed a date/time in UTC which will then return the same date/time for the UK locale.


Messages In This Thread
Can get_iplayer have UK Local ISO Date/Times? - by User 04 - 02-03-2018, 01:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Year tag includes date and time, can it be YYYY only? Gio300ZX 4 3,497 26-03-2018, 03:52 PM
Last Post: Gio300ZX
  Can I use get_iplayer to convert subs from ttml to srt at local PC? loco1 3 4,532 07-04-2016, 03:24 AM
Last Post: loco1