hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 614475fb8df946e48b236298f626a4ab2c566ad7
parent f931e578cf895123235182962fc4fc70b5f24d70
Author: Byron Torres <b@torresjrjr.com>
Date:   Thu, 20 Apr 2023 17:44:23 +0100

Revert "datetime: populate time in finish(*builder)"

This reverts commit 825cd293af2d1b60e32f2fc7a2426d668eb1e030.

This was incorrect. A later "overhaul" patch reimplements datetime
construction.

Diffstat:
Mdatetime/datetime.ha | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git a/datetime/datetime.ha b/datetime/datetime.ha @@ -239,15 +239,6 @@ export fn finish(f: *builder, m: strategy...) (datetime | insufficient | invalid m = [strategy::ALL]; }; - f.time = 0; - if (f.hour is int) f.time += f.hour as int; - f.time *= 60; - if (f.min is int) f.time += f.min as int; - f.time *= 60; - if (f.sec is int) f.time += f.sec as int; - f.time *= 1000000000; - if (f.nsec is int) f.time += f.nsec as int; - for (let i = 0z; i < len(m); i += 1) { const M = m[i]; if (