Avalonia Code OnlyItaliano

API › RAVAL

RTime class

public static class RTime

Times as abscissas of RChart, with round divisions.

Methods

static double X(DateTime t)

A date as an abscissa: seconds from the year 1.

static DateTime Date(double x)

An abscissa as a date (the kind is Unspecified, as the date given).

static double Step(double x0, double x1, int n)

The round step for about n divisions between x0 and x1, seconds.

static List<double> Ticks(double x0, double x1, double step)

The divisions between x0 and x1 at the step: multiples of the step from midnight, so that hours fall on whole hours of the day.

static string Label(double x, double step, CultureInfo culture)

The label of a division: «HH:mm:ss» below a minute, «HH:mm» below a day, the day «yyyy-MM-dd» at midnight or for steps of days; the tenths and hundredths for steps below a second.

static string Long(double x, CultureInfo culture)

The whole date and time, for a marker: «yyyy-MM-dd HH:mm:ss».