Year as a Service. Provides the current year as a service.
- Current year: https://raw.github.com/asgrim/year/master/en/currentYear
- Next year: https://raw.github.com/asgrim/year/master/en/nextYear
- Previous year: https://raw.github.com/asgrim/year/master/en/previousYear
<?php
$year = file_get_contents('https://raw.github.com/asgrim/year/master/en/currentYear');
echo $year; // 2014
require 'net/http'
year = Net::HTTP.get_response(URI.parse("https://raw.github.com/asgrim/year/master/en/currentYear")).body
p year # 2014
import urllib2
year = urllib2.urlopen('https://raw.github.com/asgrim/year/master/en/currentYear').read(1000).strip()
print year; # 2014
In the future, we may have to break BC by removing the root "currentYear". You should use "en/currentYear" instead.
YaaS also supports the following calendars:
Hebrew (he):
- Current year: https://raw.github.com/asgrim/year/master/he/currentYear
- Next year: https://raw.github.com/asgrim/year/master/he/nextYear
- Previous year: https://raw.github.com/asgrim/year/master/he/previousYear
Chinese (zh-cn):