logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
AgentPete  
#1 Posted : Wednesday, May 17, 2017 4:07:05 PM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 110
Location: London

Thanks: 52 times
Was thanked: 8 time(s) in 2 post(s)
Is there a simple way to customize time zones in TimerClock, i.e. to display

{0:MM/dd/yyyy h:mm tt}

minus 5 hours...?

Thanks!
DWAM  
#2 Posted : Thursday, May 18, 2017 5:17:45 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Hi

check these pages :
https://msdn.microsoft.c.../8kb3ddd4(v=vs.110).aspx
https://msdn.microsoft.c.../bb397769(v=vs.110).aspx

Not sure it is fully implemented in vMix but using scripting there must be a way.

Guillaume
AgentPete  
#3 Posted : Thursday, May 18, 2017 6:12:24 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 110
Location: London

Thanks: 52 times
Was thanked: 8 time(s) in 2 post(s)
Thanks, Guillaume.

The "z" value is relevant, but all it seems to do is return the difference between UTC and local machine time (in my case it displays +1).

What I'm looking to do is a simple calculation... along the lines of

{0:MM/dd/yyyy (h-5):mm tt}

But the field doesn't appear to want to do any sums...

:)
DWAM  
#4 Posted : Thursday, May 18, 2017 6:14:29 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
The 2nd link explains how to deal with time zones. (there's an option to switch to english)
AgentPete  
#5 Posted : Thursday, May 18, 2017 3:30:16 PM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 110
Location: London

Thanks: 52 times
Was thanked: 8 time(s) in 2 post(s)
Thanks, but this is way too complex for something that should be quite simple... I've tried pasting both the C# and the VB code in, all that happens is that the code displays :(
NYCshow  
#6 Posted : Saturday, October 17, 2020 5:01:39 AM(UTC)
NYCshow

Rank: Newbie

Groups: Registered
Joined: 6/12/2020(UTC)
Posts: 7
United States
Location: New York

Was thanked: 1 time(s) in 1 post(s)
Was there ever a resolution for this? I'm looking to do the exact same thing.
Pepsi(~)  
#7 Posted : Monday, October 19, 2020 3:56:08 AM(UTC)
Pepsi(~)

Rank: Advanced Member

Groups: Registered
Joined: 9/9/2020(UTC)
Posts: 90
Netherlands
Location: Noord-Brabant

Thanks: 3 times
Was thanked: 13 time(s) in 12 post(s)
How good are you with HTML? I can share you my code, I use to provide 1 analog clock (different timezone than my vmix computer.
I run it in a web browser. And switch between various inputs. To show other times.
rcdncn  
#8 Posted : Tuesday, November 16, 2021 5:00:43 PM(UTC)
rcdncn

Rank: Newbie

Groups: Registered
Joined: 10/19/2021(UTC)
Posts: 2
Canada
Location: Orillia

Originally Posted by: NYCshow Go to Quoted Post
Was there ever a resolution for this? I'm looking to do the exact same thing.


It may not be the solution you're looking for, but if you turn on the production clock
(Settings > Options > Transition Display:Production Clock)
you can double click-it, offset the time from system time, and then select 'create input'. Then you can add it anywhere.

NOTE: You may need to remove some other Transition Display objects for the Clock to appear below the T-bar.
Do a search for "Production Clocks" in the help for more info. https://www.vmix.com/help24/
Peter1000  
#9 Posted : Tuesday, November 16, 2021 6:09:37 PM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 284
Switzerland

Thanks: 16 times
Was thanked: 73 time(s) in 54 post(s)
This was solved in Doggy's Scripting for Dummies a while ago.


Code:
do while true
Dim d1 As DateTime = DateTime.Now.AddHours(3)
API.Function("SetText",Input:="clock",SelectedIndex:="0" ,Value:=d1.ToString("dd/MM/yy H:mm:ss")) 
sleep(200)
loop


I had asked vMix support some time ago if time zones were supported. The time zones are not supported. A feature request would be needed.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.