Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

now/time/day gives different answer than now/time and then asking for /day #2286

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 1 comment
Closed

Comments

@Siskin-Bot
Copy link
Collaborator

Submitted by: Hostilefork

If you extract a TIME! from NOW, you can't pick a /DAY out of it:

>> t: now/time
== 22:00:59

>> t/day
** Script error: cannot access day in path t/day

But if you do the pathing all at once, it doesn't get an error...it just ignores that you asked for the /DAY

>> now/time/day
== 22:00:57

FWIW, Red 0.6 has a similar bug when the path is done all at once...but instead of giving back the time, it gives back the hour:

>> now/time/day
== 22

Imported from: metaeducation#2286

Comments:


Hostilefork added Type.bug and Red.has.this.too on Jan 23, 2018


@Oldes
Copy link
Owner

Oldes commented Apr 11, 2020

>> now/time
== 17:22:23

>> now/time/precise
== 17:22:29.117

>> now/time/precise/day
** Script error: incompatible or invalid refinements
** Where: now
** Near: now/time/precise/day

>> now/time/day
** Script error: incompatible or invalid refinements
** Where: now
** Near: now/time/day

>> now/year/utc
** Script error: incompatible or invalid refinements
** Where: now
** Near: now/year/utc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants