Convert local time to zulu

Convert local time to zulu

b.mccarthy
Collaborator Collaborator
487 Views
4 Replies
Message 1 of 5

Convert local time to zulu

b.mccarthy
Collaborator
Collaborator

Hello.

 

I have a plot stamp routine that shows the date &  24 hour time:

iProperties.Value("Custom", "Time") = Format(TimeString & " PST")

 

What do I have to add to display zulu time?

 

TIA

0 Likes
Accepted solutions (1)
488 Views
4 Replies
Replies (4)
Message 2 of 5

matt_jlt
Collaborator
Collaborator
Accepted solution

Try here

https://docs.microsoft.com/en-us/dotnet/api/system.datetime.utcnow?view=net-6.0

 

Dim saveUtcNow As DateTime = DateTime.UtcNow

0 Likes
Message 3 of 5

b.mccarthy
Collaborator
Collaborator

Thank you.

0 Likes
Message 4 of 5

danishtj55
Explorer
Explorer

Z, or GMT time, is also based on the 24-hour clock, however, its midnight is based on midnight local time at the 0° longitude prime meridian (Greenwich, England). In other words, while the time 0000 always corresponds to midnight local time no matter the global location, 00Z corresponds to midnight in Greenwich ONLY.

0 Likes
Message 5 of 5

b.mccarthy
Collaborator
Collaborator

Yes. Is there something that you are suggesting or recommending?

0 Likes