Post Reply 
epoch Prime
01-07-2018, 09:26 AM (This post was last modified: 01-07-2018 06:35 PM by salvomic.)
Post: #44
RE: epoch Prime
(01-06-2018 11:07 PM)Dieter Wrote:  That's the way I would have done it myself. ;-)
Thank you!
(01-06-2018 11:07 PM)Dieter Wrote:  I don't see the need for a special epoch(now) function if there is a general epoch(dat, tim, zone) function where the first two parameters can easily be set to the current date and time. And maybe sometime the Prime OS will feature a global timezone variable as well.
yes, it would be useful to have a timezone setting in the Prime OS. It it were in the Prime we can also put the last parameter as "optional"...
[/quote]
(01-06-2018 11:07 PM)Dieter Wrote:  The comment should say that "zone" is the timezone relative to UTC in hours. Currently the comment only says that 0 means UTC.
you're right, I'll correct it soon.
(01-06-2018 11:07 PM)Dieter Wrote:  There is a line that may not always work properly: IF tim<>Time THEN tim:=HMS→(tim); END;
This checks if the given parameter equals the current time or not (this decides whether a HMS conversion is required or not). What if both differ by a fraction of a second? Or a second?
I think it's a better idea to advise the user to call the function with →HMS(Time) so that the time parameter always (!) has to be specified in the same hh.mmss format.
Right. I made that line in few time, just to try. Its goal is to distinguish between the "Time" builtin variable (HMS) and the "time" variable that the user choose, and I would like actually offer the opportunity to choose both HMS and H.mmss input seamless...
(01-06-2018 11:07 PM)Dieter Wrote:  And finally... you may have confused "e.g." and "i.e.".
Smile That's "for example"... We Italians say and think "per esempio" (p.e.) and when I translate into English sometimes I put "e.g." (exempli gratia, Latin) and sometimes I confound the abbreviation with "i.e" (that in Latin is "id est", "that is", Italian "cioé"). They are surely not the same expression, but their semantic field is crossed, at least in my two native languages, Italian and Latin...
[/quote]
(01-06-2018 11:07 PM)Dieter Wrote:  Otherwise it looks fine to me.

Thank you again, Dieter. Your help is much appreciated.

(01-06-2018 11:24 PM)StephenG1CMZ Wrote:  Another workaround for optional parameters would have been to use the system timezone.
It would be inconvenient to have to change the system timezone if you often need to, but for occasional use that would be a good way of handling a timezone change as an optional argument.

But I don't see a timezone setting next to the time on the Prime Home Settings screen.
As I live in UTC+0 I am not sure whether the Prime knows its timezone or not, but I don't see a setting for it.

yes, Stephen, there is no setting for timezone. I do hope that in a future version of the OS there will be one, as it would be important.
Here in Italy timezone is +1 (+2 in Summer), so I can manage with timezone all time...

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
epoch Prime - salvomic - 01-05-2018, 05:00 PM
RE: epoch Prime - pier4r - 01-05-2018, 06:03 PM
RE: epoch Prime - Dieter - 01-05-2018, 07:30 PM
RE: epoch Prime - salvomic - 01-05-2018, 07:42 PM
RE: epoch Prime - Dieter - 01-05-2018, 07:51 PM
RE: epoch Prime - salvomic - 01-05-2018, 08:07 PM
RE: epoch Prime - Dieter - 01-05-2018, 08:47 PM
RE: epoch Prime - salvomic - 01-05-2018, 09:10 PM
RE: epoch Prime - Dieter - 01-05-2018, 09:27 PM
RE: epoch Prime - salvomic - 01-05-2018, 09:36 PM
RE: epoch Prime - Dieter - 01-05-2018, 10:07 PM
RE: epoch Prime - salvomic - 01-05-2018, 10:16 PM
RE: epoch Prime - Dieter - 01-05-2018, 10:48 PM
RE: epoch Prime - pier4r - 01-05-2018, 09:40 PM
RE: epoch Prime - salvomic - 01-05-2018, 09:44 PM
RE: epoch Prime - Dieter - 01-05-2018, 09:56 PM
RE: epoch Prime - salvomic - 01-05-2018, 06:17 PM
RE: epoch Prime - salvomic - 01-05-2018, 11:26 PM
RE: epoch Prime - Dieter - 01-06-2018, 08:53 AM
RE: epoch Prime - salvomic - 01-06-2018, 09:28 AM
RE: epoch Prime - Dieter - 01-06-2018, 09:41 AM
RE: epoch Prime - Didier Lachieze - 01-06-2018, 09:50 AM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 09:40 AM
RE: epoch Prime - pier4r - 01-06-2018, 10:46 AM
RE: epoch Prime - Dieter - 01-06-2018, 12:42 PM
RE: epoch Prime - salvomic - 01-06-2018, 01:07 PM
RE: epoch Prime - salvomic - 01-06-2018, 02:45 PM
RE: epoch Prime - Dieter - 01-06-2018, 06:26 PM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 08:26 PM
RE: epoch Prime - Dieter - 01-06-2018, 08:37 PM
RE: epoch Prime - pier4r - 01-06-2018, 09:59 PM
RE: epoch Prime - salvomic - 01-06-2018, 10:07 PM
RE: epoch Prime - pier4r - 01-06-2018, 10:55 PM
RE: epoch Prime - pier4r - 01-06-2018, 03:28 PM
RE: epoch Prime - salvomic - 01-06-2018, 03:45 PM
RE: epoch Prime - salvomic - 01-06-2018, 04:10 PM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 06:54 PM
RE: epoch Prime - salvomic - 01-06-2018, 07:58 PM
RE: epoch Prime - salvomic - 01-06-2018, 08:45 PM
RE: epoch Prime - Dieter - 01-06-2018, 08:59 PM
RE: epoch Prime - salvomic - 01-06-2018, 09:01 PM
RE: epoch Prime - Dieter - 01-06-2018, 11:07 PM
RE: epoch Prime - StephenG1CMZ - 01-06-2018, 11:24 PM
RE: epoch Prime - salvomic - 01-07-2018 09:26 AM
RE: epoch Prime - Dieter - 01-07-2018, 06:22 PM
RE: epoch Prime - salvomic - 01-07-2018, 06:28 PM



User(s) browsing this thread: 1 Guest(s)