Epoch properties reference

Once, investigating the forum, I found a very consistent reference with a complete description of each of the Epoch items or properties. I need this now, but I can't find where and how I saved this, I can't even find it again in the forum, even trying several search keys.

Please, does anyone have this information in hand?

TIA :pray:

Lito

@>-->---

you can convert this to a string, using JOIN block with a empty string. then parse this result.

You did a Do it on the Now method of the clock component

Taifun

there is also this (click on the image to follow the "here" link):

image

Here are some resources that may or may not be useful:

  1. Gregorian Calendar object in Java: GregorianCalendar (Java Platform SE 8 )
  2. Source code for the ZoneInfo object in Android: luni/src/main/java/libcore/util/ZoneInfo.java - platform/libcore - Git at Google
  3. Overview of the tz (timezone) database from Wikipedia: tz database - Wikipedia

Some of the information you highlighted is in the GregorianCalendar object and the remainder is in the ZoneInfo object. The ZoneInfo object is a representation of the data for a particular time zone from the tz database included in your Android device.

It is also worth noting that Instants are a leaky abstraction in App Inventor since they aren't particularly well defined on our end. For example, the string version is different between the Android and iOS versions due to them being backed by different objects on the two platforms. If you're looking to parse this information from the string representation don't expect it to necessarily work across platforms and even different versions of the same platform.

1 Like

(added to FAQ)

1 Like