summaryrefslogtreecommitdiff
path: root/Functions/days/README.md
blob: 8a11db2fa78e0760548a0f78f4e84c61d141b393 (plain)
1
2
3
4
5
6
7
8
9
10
11
#days.m
Function to count the total days elapsed in a year according to a given date.
The syntax of the function is `days(<months>, <days>, <leap>)` where `months` is a integer (1-12). `days` is an integer (1-31) and `leap` 

## Input
months - month number (1-12). Example: `8` represents August.
days - day number of the month.
leap - indicates if the year is a leapyear or a regular year. `0` for regular and `1` for leap year.

## Output
`nd` - number of days elapsed in the year.