summaryrefslogtreecommitdiff
path: root/Functions/days/README.md
diff options
context:
space:
mode:
authorChristian Kolset <christian@kolset.com>2021-07-09 23:50:15 -0600
committerChristian Kolset <christian@kolset.com>2021-07-09 23:50:15 -0600
commit0f1c29b7c59ad4499168e0f521cf0522d01cc594 (patch)
tree7a3265be4569dd6dd4bc3809232cd8a11f13e788 /Functions/days/README.md
parent34dd12861a9a90bf88ee9abc6d8398f93f1a7b01 (diff)
Added Functions and Scripts
Diffstat (limited to 'Functions/days/README.md')
-rw-r--r--Functions/days/README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/Functions/days/README.md b/Functions/days/README.md
new file mode 100644
index 0000000..8a11db2
--- /dev/null
+++ b/Functions/days/README.md
@@ -0,0 +1,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. \ No newline at end of file