hhvm / hsl-experimental

Experimental features for the Hack Standard Library
MIT License
23 stars 10 forks source link

HSL DateTime: Time (interval) class #180

Closed jjergus closed 3 years ago

jjergus commented 3 years ago

This is a small stand-alone initial part of the DateTime library (the HH\Lib\Time class, which doesn't depend on anything else, and an associated test).

I'd like to get this reviewed before I spend too much time working on the remaining parts. Here I am mainly looking for feedback on:

fredemmott commented 3 years ago

I'll look more thoroughly through soon, but before I forget:

keep these in HH\Lib but decouple hsl-experimental from WWW first

Raw HH\Lib\ should really be preserved for built-ins only. It is a lot of work and pain to move stuff from external to built-in without changing the namespace, and essentially forces a minimum 3-week delay to the eventual merge process, to accommodate our need to be able to test/run on older versions of HHVM for a while.

lexidor commented 3 years ago

Note to self, have a look at dt4 shortly. The API has changed since dt2.

jjergus commented 3 years ago