BCODMO / webcomponent_data_viewer

Visualize a Frictionless Data Package
0 stars 1 forks source link

Show what the format type is #23

Open adyork opened 3 years ago

adyork commented 3 years ago

The format being displayed is python. We should put that information somewhere, either a tooltip next to "format" title? Or I don't know.

Dates, Times, and datetimes use https://docs.python.org/3.6/library/datetime.html#strftime-and-strptime-behavior

This is something that we need to add somewhere to OSPREY as well if we do https://github.com/BCODMO/OSPREY-Drupal/issues/101 which adds the format to the Dataset landing page format table.

adyork commented 3 years ago

image

ashepherd commented 3 years ago

Java - https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html Python - https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior

https://jsfiddle.net/hbyjvLes/

To-Do: Make replace function calls for all possibilities.