Chi2fit.Times.map2workhours
You're seeing just the function
map2workhours
, go back to Chi2fit.Times module for more information.
Specs
Maps the time of a day into the working hour period
Scales the resulting part of the day between 0..1.
Arguments
`t` - date and time of day as a float; the integer part specifies the day and the fractional part the hour of the day
`startofday` - start of the work day in hours
`endofday` - end of the working day in hours
Example
iex> map2workhours(43568.1, 8, 18)
43568.0
iex> map2workhours(43568.5, 8, 18)
43568.4