Crate color_output

Source

Macros§

output_macro
Output macro
print_error
print_message_common_handler
print_success
print_warning
println_error
println_success
println_warning

Structs§

Output
Output struct
OutputBuilder
OutputBuilder struct
OutputList
OutputList struct
OutputListBuilder
OutputListBuilder struct

Enums§

Color
Color
ColorType
ColorType

Constants§

COMMON_YEAR
Common Year
DAYS
Days
LEAP_YEAR
Leap Year
MONTHS
Months

Functions§

calculate_time
Calculates the current year, month, day, hour, minute, second, millisecond and microsecond.
compute_date
Computes the year, month, and day from days since Unix epoch (1970-01-01).
date
Gets the current day, without the time.
day
Gets the current day.
gmt
Gets the current date and time in GMT format.
hour
Gets the current hour.
is_leap_year
Determines if a year is a leap year.
micros
Gets the current timestamp in microseconds.
millis
Gets the current timestamp in milliseconds.
minute
Gets the current minute.
month
Gets the current month.
output
Output
second
Gets the current second.
time
Gets the current time, including the date and time.
time_micros
Gets the current time with microseconds, including the date and time.
time_millis
Gets the current time with milliseconds, including the date and time.
timestamp
Gets the current timestamp in seconds since Unix epoch.
timestamp_micros
Gets the current timestamp in microseconds since Unix epoch.
timestamp_millis
Gets the current timestamp in milliseconds since Unix epoch.
year
Gets the current year.