Coder Social home page Coder Social logo

Datetime toolkit about administration HOT 6 CLOSED

ibmstreams avatar ibmstreams commented on June 14, 2024
Datetime toolkit

from administration.

Comments (6)

rrea avatar rrea commented on June 14, 2024

+1 - sounds good.

from administration.

ddebrunner avatar ddebrunner commented on June 14, 2024

Initial version of the toolkit at:

https://github.com/ddebrunner/streamsx.datetime

from administration.

mikespicer avatar mikespicer commented on June 14, 2024

+1 For creating this Datetime toolkit
The functions in the initial version look useful and make code a lot more readable

from administration.

jchailloux avatar jchailloux commented on June 14, 2024

+1

How can I contribute to add functions such as :

/**
* Convert a timestamp into an string ISO format
* use 'man strptime' to get the list of available format
*/

public rstring timestampToISO(timestamp dtime)
{
mutable Sys.tm timetuple = { } ;
time(dtime, timetuple) ;
/*
* %Y The year, including century (for example, 1991).
* %m The month number (1-12).
* %d or %e The day of month (1-31).
*/
rstring dateString = strftime(timetuple, "%Y-%m-%d") ;

/*
* %T        Equivalent to %H:%M:%S
*/
rstring timeString = strftime(timetuple, "%T") ;
/*
 *  %z     An RFC-822/ISO 8601 standard timezone specification.
 */
rstring timeZoneString = strftime(timetuple, "%z") ;


float64 milliseconds =(float64) getNanoseconds(dtime) / 1000000f ;
return dateString + "T" + timeString + "." +(rstring)((uint32) milliseconds) + timeZoneString ;

}

from administration.

ddebrunner avatar ddebrunner commented on June 14, 2024

Once the repository is created, you can fork it, make changes and issue a pull request to have those changes become part of the toolkit.

There are some teething issues in setting up new repositories, once this has been resolved proposals should be accepted more quickly.

from administration.

petenicholls avatar petenicholls commented on June 14, 2024

repository has been created and additions can be discussed there. Opening a new issue with above in it in the streamsx.datetime repos.

from administration.

Related Issues (20)

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.