ct_to_time: Convert radian to time

View source: R/ct_to_time.R

ct_to_timeR Documentation

Convert radian to time

Description

This function converts an angle in radians (representing a fraction of a full circle) into a time in the format '%H:%M:%S'. The conversion assumes that the radian value represents a fraction of a 24-hour day (i.e., 0 radians is midnight and 2\pi radians is the next midnight).

Usage

ct_to_time(radian)

Arguments

radian

A numeric value or vector representing an angle in radians. The value must lie within the range [0, 2\pi], where 0 corresponds to midnight (00:00:00) and 2\pi corresponds to the next midnight (24:00:00).

Value

A character string representing the time in the format '%H:%M:%S'.

See Also

ct_to_radian()

Examples

# Convert 1.6 radians to time
ct_to_time(1.6)
# Output: "06:06:42"


ct documentation built on Oct. 22, 2026, 1:07 a.m.