summaryrefslogtreecommitdiffstats
path: root/dev/a3-earthquake/date.h
diff options
context:
space:
mode:
authorKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
committerKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
commitcccd3186305915d92b1751dc616979d64116a4aa (patch)
tree5dd4834daef547cd45fc0b643f44a10b581de0ad /dev/a3-earthquake/date.h
parentAdded missing images for the A6 worksheet (diff)
downloadcsci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.gz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.bz2
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.lz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.xz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.zst
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.zip
Upload a1
Diffstat (limited to 'dev/a3-earthquake/date.h')
-rw-r--r--dev/a3-earthquake/date.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/dev/a3-earthquake/date.h b/dev/a3-earthquake/date.h
deleted file mode 100644
index 8768745..0000000
--- a/dev/a3-earthquake/date.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/** CSci-4611 Assignment 3: Earthquake
- */
-
-#ifndef DATE_H_
-#define DATE_H_
-
-#include <ctime>
-#include <iostream>
-
-/** A date class that handles leap years and can convert itself to seconds and
- handle < and > operations.
- */
-class Date {
-public:
- Date();
- Date(double seconds);
- Date(int m, int d, int y);
- Date(int m, int d, int y, int hr, int min, double sec);
-
- bool operator<(const Date& other);
- bool operator>(const Date& other);
-
- double ToSeconds() const;
-
- double SecondsUntil(const Date& other) const;
-
- int year();
-
- int month();
-
- int day();
-
- int hour();
-
- int minute();
-
- double second();
-
-private:
- std::time_t ctime_;
- int fouryears_;
- int year_;
- int month_;
- int day_;
- int hour_;
- int minute_;
- double second_;
-};
-
-#endif