Pudu programming language
Menu
API reference

Std.Time.Format.daysFromCivil

1 declaration

fn

daysFromCivil: Int -> Int -> Int -> Int

This is a callable function.

What it does

The day number a civil date stands on, counting from the start of 1970.

The calendar repeats exactly every four hundred years, so a date is placed

by counting whole cycles and then the position within one. That is what

makes this arithmetic rather than a table, and what makes it as correct in

the year 3000 as in this one.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.

Back to Std.Time.FormatSearch related declarations