LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
JÞB

Display Format Glyph for Timestamps

Status: New

String containers have display format Glyphs to help us understand the String Values when the display is Normal, Hex or Escape codes.

 

Integer numeric type containers have them too to show radix.

 

Timestamp containers must be inspected for their display format property to determine if they are in System Time or UTC.   

 

Timestamp Controls, Indicators and Contsants SHOULD have a similar optional display format glyph.

 

This could be used instead of the misleading coercion dots when operations are performed on Timestamps as Seen Here 


"Should be" isn't "Is" -Jay
8 Comments
wiebe@CARYA
Knight of NI

@JÞB wrote:

This could be used instead of the misleading coercion dots when operations are performed on Timestamps as Seen Here 


I like (kudo'd) the idea, but I don't see the relation to those coercion dots.

rolfk
Knight of NI

There is NO relation to the coercion dots.

 

As far as the glyph goes, a simple U (for UTC) and L (for Local time) would be already enough.

Rolf Kalbermatter
My Blog
JÞB
Knight of NI

No, I was mistaken about the coercion dots disappearing when UTC display was used.

However this picture shows a potential visual indication that would clarify the shown code

dammit.png 

Certainly, a better graphic artist could have at it! but without some display indication the 4 hour difference is obfuscated.  Yes, my PC is in EDT.  But I like those glyphs for Local (Clock) and UTC (Global) 

 

Glyphs leave a bit of room for anticipated expansion.  Soon (hopefully) Someone will suggest that UTC would be better renamed to Terran Time Coordinated (TTC) and a nice reddish glyph could represent MTC (Martian Time Coordinated) to account for the extra 37minutes per solar day there!  We might have to rescope LabVIEW Globals!


"Should be" isn't "Is" -Jay
wiebe@CARYA
Knight of NI

How to deal with timestamps that display both UTC and Local time?

wiebeCARYA_0-1650874112750.png

 

Simply show both indication?

 

Also, should doubles get this indication if they're formatted for time?

wiebeCARYA_1-1650874207688.png

 

JÞB
Knight of NI

How to deal with timestamps that display both UTC and Local time?

 

JB_1-1650894805546.png

 

 

Simply show both indication?

 

Also, should doubles get this indication if they're formatted for time?

 

JB_3-1650894805627.png

 

 

The existing indications for integers, floats and strings force display format changes. 

Try formating an I32 display as

"%d

%x

%p"

The radix display can no longer be shown.

Try "Show Radix" on a float formated with a time container.  The current implementation FAILS TO SHOW ANYTHING, ALTHOUGH THE CHECKBOX CAN BE SELECTED! So there are simply missing options for the display format selections for floats as currently implemented.  And while fixing that oversight, NI could add sexagesimal notation too! You remember, degrees, minutes, seconds ... they only predate decimal notation by 5Kyears.

 

I would expect that similar rules would apply for Time supporting single display format only and allowing change to display format from the indication selector.


"Should be" isn't "Is" -Jay
ChrisStrykesAgain
Active Participant

What's wrong with the just using ISO8601 style for the display? Very clear and no glyph needed...

 

"2007-04-05T14:30Z" for UTC or  "2007-04-05T12:30−02:00" for UTC -2 for example.

 

Edit to add link: https://en.wikipedia.org/wiki/ISO_8601

--------------------------------------
JÞB
Knight of NI

Gosh Christopher, absolutely nothing wrong with that except LabVIEW defaults to system time format %<...>T. Or UTC %^<...>T and doesn't have a %|ISO8601|<...>T container. That would be a different idea 💡and you can't use Thursday since it breaks the lexical requirement in 8601

 


"Should be" isn't "Is" -Jay
ChrisStrykesAgain
Active Participant

I see your point. Didn't intend to threadjack.

--------------------------------------