Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gc to roc calendar #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/components/Body.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@
enterVal="Enter NTD of 1 L"
/>
</div>
<div>
<Converter
label="Year GC - ROC"
outputLabel="ROC Equivalent Year"
:output="rocCalendarConvert"
enterVal="Enter GC Year"
/>
</div>
</div>
</div>
<div id="footer">
Expand Down Expand Up @@ -162,6 +170,10 @@ export default {
ntdlConvert(convert) {
return Number(((convert * 3.785411784) / 27.67).toFixed(2));
},
rocCalendarConvert(convert) {
const rocYear = convert - 1911;
return rocYear > 0 ? rocYear : 0;
},
};
},
components: {
Expand Down