starshums/jdejulianconverter

A Laravel library that converts a given Oracle JD Edwards Julian date to the standard Gregorian date.

Downloads

1042

Stars

0

Version

v1.0

:clipboard: Oracle JD Edwards Julian date converter for Laravel 5

A Laravel library that converts a given Oracle JD Edwards Julian date to the standard Gregorian date.
Date fields in JD Edwards are stored in the Julian format where the date format is CYYDDD
For more information on this format please visit this page

:grey_question: Installation

Require this package in your composer.json and update composer.

composer require starshums/jdejulianconverter

and then update composer :

composer update

After updating composer, add the ServiceProvider to the providers array in config/app.php

starshums\jdejulianconverter\JDEJulianConverterServiceProvider::class,

You also need to add the alias. Add this to your aliases:

'JJC' => starshums\jdejulianconverter\JDEJulianConverter::class,

:open_book: Usage

$converter = new \JJC;
$date = $converter->Convert(110123); // expected result : 2010-05-03

:handshake: Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

:page_with_curl: License

MIT

starshums

Author

starshums