GithubHelp home page GithubHelp logo

pasoonate / pasoonate-php Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 2.0 86 KB

Pasoonate is a PHP library that includes date time methods and calendars.

Home Page: http://www.pasoon.ir

License: MIT License

PHP 100.00%
calendar gregorian-calendar hijri-calendar jalali-calendar persian-calendar

pasoonate-php's People

Contributors

ataiemajid63 avatar mbpcoder avatar sajadabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sajadabs dehnavi

pasoonate-php's Issues

Implicit conversion from float to int loses precision

hi,
I found a little issue in calendar.php when i switch to php version 8,
I saw this warning :
Implicit conversion from float 1.0137975617194084 to int loses precision in line 80 calendar.php
According to php upgrade it is not possible to take the remainder of a decimal number.
Because of this, this code :
floor($time / Constants::MINUTES_PER_HOUR % Constants::SECONDS_PER_MINUTE)
must be changed to :
floor($time / Constants::MINUTES_PER_HOUR) % Constants::SECONDS_PER_MINUTE
Thank you for your attention.

SyntaxError: Cannot use import statement outside a module

متاسفانه
node js
از دستور
import
پشتیبانی نمیکند باید از دستور قدیمی تر
require
به جای آن استفاده کرد

H:\...\node_modules\pasoonate\src\Pasoonate.js:1
import Constants from './Constants';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:988:16)
    at Module._compile (internal/modules/cjs/loader.js:1036:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Module.require (internal/modules/cjs/loader.js:961:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (H:\pro\timenode\controller\calendarController.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.