~torresjrjr

Europe/London

https://torresjrjr.com/

~torresjrjr/public-inbox

Last active a day ago

~torresjrjr/nest-devel

Last active 2 years ago

~torresjrjr/nest-announce

Last active 2 years ago

~torresjrjr/lateximgbot-devel

Last active 2 years ago

~torresjrjr/lateximgbot-announce

Last active 2 years ago

~torresjrjr/bezier.py-devel

Last active 2 years ago

~torresjrjr/bezier.py-announce

Last active 2 years ago

~torresjrjr/go-nestedtext-discuss

Last active 2 years ago

~torresjrjr/go-nestedtext-devel

Last active 2 years ago

~torresjrjr/go-nestedtext-announce

Last active 2 years ago
View more

Recent activity

[PATCH hare v2 08/10] time::date: change type parsefail, add byteindex 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Breaking-Change: 0.24.0
Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 time/date/date.ha  |  4 ++--
 time/date/error.ha | 12 +++++-------
 time/date/parse.ha | 12 ++++++------
 3 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/time/date/date.ha b/time/date/date.ha
index 4f46fe1f..ded5c818 100644
--- a/time/date/date.ha
+++ b/time/date/date.ha
@@ -261,8 +261,8 @@ export fn from_str(
		//("%FT%T%z %L", "2009-06-30T18:30:00+0200 Europe/Amsterdam", [amst],
[message trimmed]

[PATCH hare v2 07/10] time::date: make type insufficient an enum 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 time/date/error.ha   | 14 ++++++++++++--
 time/date/virtual.ha | 26 ++++++++++++++++++++------
 2 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/time/date/error.ha b/time/date/error.ha
index 0da7cfff..9cc8339c 100644
--- a/time/date/error.ha
+++ b/time/date/error.ha
@@ -2,6 +2,7 @@
// (c) Hare authors <https://harelang.org>

use fmt;
[message trimmed]

[PATCH hare v2 09/10] time::date: change, add layout constants 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Rename layout [[EMAILZ]] to [[EMAILZONE]].
Rename layout [[STAMP_NANO]] to [[STAMPNANO]].
Rename layout [[STAMP_ZOFF]] to [[STAMPZOFF]].
Rename layout [[STAMP_ZONE]] to [[STAMPZONE]].
Rename layout [[STAMP_NOZL]] to [[STAMPLOC]].

New layouts with examples:

[[JOURNAL]]
        "2038 Jan 19, Tue 04:14:07 +0100 CET Europe/Amsterdam"
[[WRIST]]
        "Jan-19 Tue 04:14 CET"
[[QUARTZ]]
        "2147480047.012700000"
[message trimmed]

[PATCH hare v2 10/10] time::date: virtual: add .vsec, .vnsec 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

[[virtual]] has two new fields:

* .vsec "virtual's second since epoch"
* .vnsec "virtual's nanosecond"

[[parse]] now handles %s, and %N additionally assigns to .vnsec.

[[realize]] now accounts for .vsec and .vnsec, and has improved
documentation.

This change makes parsing dates using the [[QUARTZ]], [[QUARTZZOFF]],
and [[QUARTZLOC]] layouts useful.

    date::parse(&v, date::QUARTZLOC, "2147483647.0:Europe/Amsterdam");
[message trimmed]

[PATCH hare v2 02/10] time::chrono: improve LOCAL, tz() 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Make [[LOCAL]] default to [[UTC]] proper.

Accept the POSIX $TZ environment variable form with a ':' prefix.

Allow [[tz]] to accept full filepaths as in POSIX.

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 hare/module/format.ha   |  2 +-
 time/chrono/timezone.ha | 78 +++++++++++------------------------------
 time/chrono/tzdb.ha     | 20 +++++++----
 3 files changed, 35 insertions(+), 65 deletions(-)

diff --git a/hare/module/format.ha b/hare/module/format.ha
[message trimmed]

[PATCH hare v2 01/10] time::chrono: rename _lookupzone to lookupzone 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 time/chrono/chronology.ha | 2 +-
 time/chrono/timezone.ha   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/time/chrono/chronology.ha b/time/chrono/chronology.ha
index 885eb7c5..8361f599 100644
--- a/time/chrono/chronology.ha
+++ b/time/chrono/chronology.ha
@@ -56,7 +56,7 @@ export fn mzone(m: *moment) zone = {
	case let z: *zone =>
		return *z;
	case null =>
[message trimmed]

[PATCH hare v2 04/10] time::chrono: rename mzone to ozone 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Rename export [[time::chrono::mzone]] to [[time::chrono::ozone]].

Braking-Change: 0.24.0
Signed-off-by: Byron Torres <b@torresjrjr.com>
---

It's "observe zone".

 time/chrono/chronology.ha |  8 ++++----
 time/date/date.ha         |  2 +-
 time/date/format.ha       |  8 ++++----
 time/date/parithm.ha      | 16 ++++++++--------
 time/date/reckon.ha       |  2 +-
 time/date/virtual.ha      |  2 +-
[message trimmed]

[PATCH hare v2 03/10] time::chrono: moment.daytime: i64, not duration 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Semantic correction.

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 time/chrono/chronology.ha | 15 ++++++++-------
 time/date/daytime.ha      |  4 ++--
 time/date/virtual.ha      |  6 +++---
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/time/chrono/chronology.ha b/time/chrono/chronology.ha
index 8361f599..ea8f9cfc 100644
--- a/time/chrono/chronology.ha
+++ b/time/chrono/chronology.ha
@@ -33,8 +33,9 @@ export type moment = struct {
[message trimmed]

[PATCH hare v2 06/10] time::date: rename some calc functions 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 time/date/daydate.ha | 10 +++++-----
 time/date/parithm.ha |  8 ++++----
 time/date/reckon.ha  | 12 ++++++------
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/time/date/daydate.ha b/time/date/daydate.ha
index 982848f5..026cdb11 100644
--- a/time/date/daydate.ha
+++ b/time/date/daydate.ha
@@ -25,16 +25,16 @@ export fn isleapyear(y: int) bool = {
// Calculates whether a given year, month, and day-of-month, is a valid date.
fn is_valid_ymd(y: int, m: int, d: int) bool = {
[message trimmed]

[PATCH hare v2 05/10] time::chrono: rename path constant exports 20 hours ago

From Byron Torres to ~sircmpwn/hare-dev

Rename [[ZONEINFO_PREFIX]] to [[TZDB_PATH]]
as "zoneinfo" is merely a convention.

Rename [[UTC_LEAPSECS_FILE]] to [[UTC_LEAPSECS_PATH]]
for consistency.

Breaking-Change: 0.24.0
Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 time/chrono/+freebsd.ha  | 4 ++--
 time/chrono/+linux.ha    | 4 ++--
 time/chrono/+openbsd.ha  | 4 ++--
 time/chrono/leapsec.ha   | 6 +++---
 time/chrono/timescale.ha | 2 +-
[message trimmed]