In DateTime§
See primary documentation in context for method day-fraction
method day-fraction(DateTime: --> Real)
Returns the instant's time as a fraction of a 24-hour day.
say DateTime.new('2021-12-24T12:23:00.43Z').day-fraction; # OUTPUT: «0.5159772»
Notice the day-fraction
value is the same as the fractional part of the modified-julian-date
for the same instant.
Available as of the 2021.04 Rakudo compiler release.