{"id":18657310,"url":"https://github.com/jmrozanec/cron-utils-timestrings","last_synced_at":"2025-08-09T17:06:14.238Z","repository":{"id":57718520,"uuid":"61505765","full_name":"jmrozanec/cron-utils-timestrings","owner":"jmrozanec","description":"A Java library to update expressions with a given point in time, in a custom format.","archived":false,"fork":false,"pushed_at":"2016-06-20T02:19:05.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T15:11:07.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmrozanec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-19T23:53:49.000Z","updated_at":"2016-06-20T01:43:50.000Z","dependencies_parsed_at":"2022-09-26T21:40:40.420Z","dependency_job_id":null,"html_url":"https://github.com/jmrozanec/cron-utils-timestrings","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrozanec%2Fcron-utils-timestrings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrozanec%2Fcron-utils-timestrings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrozanec%2Fcron-utils-timestrings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrozanec%2Fcron-utils-timestrings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmrozanec","download_url":"https://codeload.github.com/jmrozanec/cron-utils-timestrings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239474820,"owners_count":19645000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T07:27:38.072Z","updated_at":"2025-02-18T12:44:09.519Z","avatar_url":"https://github.com/jmrozanec.png","language":"Java","readme":"cron-utils-timestrings\n===========\nA Java library to provide human readable time strings and means to replace them with an actual date. The project follows the [Semantic Versioning Convention](http://semver.org/) and uses Apache 2.0 license.\n\n[![Gitter Chat](http://img.shields.io/badge/chat-online-brightgreen.svg)](https://gitter.im/jmrozanec/cron-utils)\n[![Build Status](https://travis-ci.org/jmrozanec/cron-utils-timestrings.png?branch=master)](https://travis-ci.org/jmrozanec/cron-utils-timestrings)\n[![Coverage Status](https://coveralls.io/repos/jmrozanec/cron-utils-timestrings/badge.png)](https://coveralls.io/r/jmrozanec/cron-utils-timestrings)\n\n\n**Download**\n\ncron-utils-timestrings is available on [Maven central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.cronutils%22) repository.\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.cronutils\u003c/groupId\u003e\n        \u003cartifactId\u003ecron-utils-timestrings\u003c/artifactId\u003e\n        \u003cversion\u003e0.1.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\n\n**Features**\n\n * Define a human readable point in time and get accurate date replacement when required.\n\n**Usage Examples**\n\n    String sql = given(\"SELECT * FROM tracks WHERE ds\u003e='YESTERDAY' AND ds\u003c'TODAY'\")\n                    .registerReplacement(\"YESTERDAY\", \"yyyy-MM-dd\", date-\u003edate.minusDays(1))\n                    .registerReplacement(\"TODAY\", \"yyyy-MM-dd\", date-\u003edate)\n                    .buildExpression(DateTime.now());\n    //should give us: SELECT * FROM tracks WHERE ds\u003e='2016-06-16' AND ds\u003c'2016-06-17'\n\n\n\n**Contribute \u0026 Support!**\n\nContributions are welcome! You can contribute by\n * starring and/or Flattring this repo!\n * requesting or adding new features.\n * enhancing existing code\n * testing\n * enhancing documentation\n * bringing suggestions and reporting bugs\n * spreading the word / telling us how you use it!\n\n\nCheck [our page](http://cronutils.com)! For stats about the project, you can visit our [OpenHUB profile](https://www.openhub.net/p/cron-utils-timestrings).\n\nSupport us donating once or by subscription through Flattr!\n\n[![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=jmrozanec\u0026url=https://github.com/jmrozanec/cron-utils-timestrings)\n\n**Other cron-utils projects**\n\nYou are welcome to visit and use the following cron-utils projects:\n * [cron-utils](https://github.com/jmrozanec/cron-utils): A Java library to parse, validate, migrate crons as well as get human readable descriptions for them.\n * [cron-utils-spring](https://github.com/jmrozanec/cron-utils-spring): A Java library to describe cron expressions in human readable language at Spring framework, using cron-utils.\n * [sisyphus](https://github.com/jmrozanec/cron-utils-sisyphus): A cron-utils based scala scheduler. Supports any cron format and executes tasks all over again.\n * [htime](https://github.com/jmrozanec/htime): A Java library to make it easy for humans format a date. You no longer need to remember date time formatting chars: just write an example, and you will get the appropiate formatter.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrozanec%2Fcron-utils-timestrings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmrozanec%2Fcron-utils-timestrings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrozanec%2Fcron-utils-timestrings/lists"}