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
simond83  
#1 Posted : Thursday, February 18, 2021 3:15:14 PM(UTC)
simond83

Rank: Advanced Member

Groups: Registered
Joined: 5/25/2020(UTC)
Posts: 31

Was thanked: 1 time(s) in 1 post(s)
I've had a read of the below and the Microsoft link in the article, but can't get anything to work.

https://www.vmix.com/kno...-clock-and-timer-options

All of my machines are running in UTC time. If want to display a clock or timer in PST, GMT or JST for example, how can i write that code into the string? I've tried both the Z and K commands, but with no luck. Any ideas?
simond83  
#2 Posted : Friday, February 26, 2021 6:12:01 PM(UTC)
simond83

Rank: Advanced Member

Groups: Registered
Joined: 5/25/2020(UTC)
Posts: 31

Was thanked: 1 time(s) in 1 post(s)
@admin - please move to GT forum

My PC (Server 2019) is set to UTC. In vMix, i create a new GT Title, Timer Centre. {0:hh:mm:ss} this is the standard clock and i get a print of hh:mm:ss.

{0:K:hh:mm:ss} gives me +00:00:mm:hh:ss
{0:z:hh:mm:ss} gives me +0:mm:hh:ss
{0:hh:mm:ssz} gives me mm:hh:ss+0
{0:hh:mm:sszz} gives me mm:hh:ss+00

I've tried both Z and K commands, but can't work this out. I would like my clock to display JST for example. How do i code the syntax so that i can tell the command that i want a +9 or JST output clock, showing me just mm:hh:ss but in that timezone?

doggy  
#3 Posted : Friday, February 26, 2021 7:18:39 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Could always use a production clock input with a time offset , crop and resize and overlay on title
doggy  
#4 Posted : Friday, February 26, 2021 8:06:49 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
or script (add/subtract time difference)



Code:
Dim d1 As DateTime = DateTime.Now.AddHours(3)
API.Function("SetText",Input:=1,SelectedIndex:="0" ,Value:=d1.ToString("dd/MM/yy H:mm:ss"))
thanks 1 user thanked doggy for this useful post.
studiodelta on 1/1/2024(UTC)
Users browsing this topic
Guest
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.