Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

How to set 12 hour time please?

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
Pinan
Posts: 20
Joined: July 9th, 2006, 5:15 pm

How to set 12 hour time please?

Post by Pinan »

Hello all

I have LCD Smartie up and running fine with SageTV, but two questions please.

1. How do I get 12 hour time to show, instead of 24 hour time? I presently have time set as "$Time(hh:nn:ss)".

2. Running SageTV, I'd like to show the length of show (ie. 01:00:00 for 1 hour), but all I get is the end time. I've tried "7,0,1#h:nn" to no avail.

I'm not new to PC's, but I am new to this kind of thing, so my apologies if I'm being vague, etc.

Thanks :)
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

1. $Time(hh:nn:ss AM/PM) Should give you the result you want.
For more info using the $Time function go to LCD Smartie site there is a complete guide for this function. :wink:

2. Do you want to add the lenght to current time? please give some more info about it.
Pinan
Posts: 20
Joined: July 9th, 2006, 5:15 pm

Post by Pinan »

Thanks Limbo! I had found that (reading myself to death), but I'd like not to see the "AM" or "PM" at all. Can this be done? I mean....looking outside tells me AM or PM, Heh. ;)

2: I simply want the shows length to show, following the Current Position (already there). You know....like 1 hour (01:00:00). Right now it only shows what time the show ends.

Btw. Thanks for a great program. :)
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Using my search and replace plugin you can "omit" any string you like! U have to read the read me text inside the package.

There are some math functions inside the demo.dll. Function 2 is subtract as far I can remember. Playing with this you can subtrack the current time from end time (I hope so) otherwise post here to check if its possible to make a plugin for this.
Of course you can use the regular expresion to make some math functions but don't ask me about it. (i'm not using regex at all)
Pinan
Posts: 20
Joined: July 9th, 2006, 5:15 pm

Post by Pinan »

Ok, thanks Limbo. I'll work on this.
Post Reply