[#87847] undefined symbol: mjit_init_p — Leam Hall <leamhall@...>

I pulled Ruby trunk on 3 Jul and am now getting errors similar to the

10 messages 2018/07/07

[#88088] [Ruby trunk Misc#14937] [PATCH] thread_pthread: lazy-spawn timer-thread only on contention — normalperson@...

Issue #14937 has been reported by normalperson (Eric Wong).

9 messages 2018/07/24

[ruby-core:87997] [Ruby trunk Feature#14877] Calculate age in Date class

From: shannonskipper@...
Date: 2018-07-19 00:37:57 UTC
List: ruby-core #87997
Issue #14877 has been updated by shan (Shannon Skipper).


derosm2 (Mike DeRosa) wrote:
> `Date.new(2016, 3, 6).age #=> 2`

It might be nice to be able to specify a unit of time other than year.

~~~ ruby
Date.new(2016, 3, 6).age #=> 2
Date.new(2016, 3, 6).age(:year) #=> 2
Date.new(2016, 3, 6).age(:century) #=> 0
Date.today.iso8601 #=> "2018-07-18"
Date.new(2016, 3, 6).age(:month) #=> 28
~~~

Units might include :millenia, :century, :decade, :year, :month, :week, :day, :hour, :minute, :second, :millisecond, :microsecond and :nanosecond.



----------------------------------------
Feature #14877: Calculate age in Date class
https://bugs.ruby-lang.org/issues/14877#change-73013

* Author: derosm2 (Mike DeRosa)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Seems like there's enough complexity in determining the right values and it's something a ton of apps have to address. I've seen a bunch of StackOverflow and other blog posts attempt to address this, not all of them accurately.

Specifically age would calculate the number of years since a person's birthdate (or how old they are).

So if today is 2018, 6, 28:
`Date.new(2016, 3, 6).age #=> 2`
`Date.new(2016, 6, 29).age #=> 1`



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next