{"id":20816252,"url":"https://github.com/dyazincahya/dtm-helper-java","last_synced_at":"2025-03-12T05:28:11.819Z","repository":{"id":85548366,"uuid":"364841737","full_name":"dyazincahya/DTM-helper-java","owner":"dyazincahya","description":"Date Time Manipulation (DTM) Helper for JAVA, compatible for Spring Boot too.","archived":false,"fork":false,"pushed_at":"2021-05-11T07:42:38.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T15:52:07.943Z","etag":null,"topics":["date","datetime","datetime-helper","dtm","fill","java","java-helper","java-utils","manipulation","manipulation-milisecond","manipulation-minute","spring-boot","time","utility"],"latest_commit_sha":null,"homepage":"https://dyazincahya.github.io/DTM-helper-java/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyazincahya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"kangcahya","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.com/paypalme/dyazincahya"]}},"created_at":"2021-05-06T08:38:59.000Z","updated_at":"2021-05-30T09:25:37.000Z","dependencies_parsed_at":"2023-03-04T07:30:12.600Z","dependency_job_id":null,"html_url":"https://github.com/dyazincahya/DTM-helper-java","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2FDTM-helper-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2FDTM-helper-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2FDTM-helper-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2FDTM-helper-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyazincahya","download_url":"https://codeload.github.com/dyazincahya/DTM-helper-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243164539,"owners_count":20246716,"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":["date","datetime","datetime-helper","dtm","fill","java","java-helper","java-utils","manipulation","manipulation-milisecond","manipulation-minute","spring-boot","time","utility"],"created_at":"2024-11-17T21:29:18.777Z","updated_at":"2025-03-12T05:28:11.797Z","avatar_url":"https://github.com/dyazincahya.png","language":"Java","readme":"\u003cimg src=\"https://github.com/dyazincahya/DTM-helper-java/raw/main/icon.png\" width=\"250\" /\u003e\n\n# Date Time Manipulation (DTM) Helper for JAVA\nDate Time Manipulation (DTM) Helper for JAVA, compatible for Spring Boot too.\n\n### Features\n  - Manipulation day\n  - Manipulation Month\n  - Manipulation Year\n  - Manipulation Hour\n  - Manipulation Minute\n  - Manipulation Second\n  - Manipulation Milisecond\n  - Re-format Date _(convert date to string)_\n  - Convert String To Date/Datetime\n\n### Has Tested\n  - Java 11\n  - Spring Boot 2.4.2\n\n### Installation\n  - Download/copy file [DTM.java](https://github.com/dyazincahya/DTM-helper-java/blob/main/DTM.java) to your own project\n  - Adjust ```Package Path``` in line 2 on file [DTM.java](https://github.com/dyazincahya/DTM-helper-java/blob/main/DTM.java)\n  - Done.\n\n### Usage\n\n##### Manipulation Day\n\n\u003e dtm.day(param).getTime();\n\nFill positive numbers on the ```Param``` to add days (1,2,3, etc), and;\nfill negative numbers on the ```Param``` to subtract days (-1, -2, -3, etc)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.day(-1).getTime();\n```\n\n##### Manipulation Month\n\n\u003e dtm.month(param).getTime();\n\nFill positive numbers on the ```Param``` to add month (1,2,3, etc), and;\nfill negative numbers on the ```Param``` to subtract month (-1, -2, -3, etc)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.month(-1).getTime();\n```\n\n##### Manipulation Year\n\n\u003e dtm.year(param).getTime();\n\nFill positive numbers on the ```Param``` to add year (1,2,3, etc), and;\nfill negative numbers on the ```Param``` to subtract year (-1, -2, -3, etc)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.year(-1).getTime();\n```\n\n##### Manipulation Hour\n\n\u003e dtm.hour(param).getTime();\n\nFill positive numbers on the ```Param``` to add hour (1,2,3, etc), and;\nfill negative numbers on the ```Param``` to subtract hour (-1, -2, -3, etc)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.hour(-1).getTime();\n```\n\n##### Manipulation Minute\n\n\u003e dtm.minute(param).getTime();\n\nFill positive numbers on the ```Param``` to add minute (1,2,3, etc), and;\nfill negative numbers on the ```Param``` to subtract minute (-1, -2, -3, etc)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.minute(-1).getTime();\n```\n\n##### Manipulation Second\n\n\u003e dtm.second(param).getTime();\n\nFill positive numbers on the ```Param``` to add second (1,2,3, etc), and;\nfill negative numbers on the ```Param``` to subtract second (-1, -2, -3, etc)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.second(-1).getTime();\n```\n\n##### Manipulation Milisecond\n\n\u003e dtm.milisecond(param).getTime();\n\nFill positive numbers on the ```Param``` to add milisecond (1,2,3, etc), and;\nfill negative numbers on the ```Param``` to subtract milisecond (-1, -2, -3, etc)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.milisecond(-1).getTime();\n```\n\n##### Re-format Date _(convert date to string)_\n\n\u003e dtm.reFormat(param1, param2);\n\nFill the ```Param1``` with Date data type value, and; \nfill the ```Param2``` with Date string pattern \n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.reFormat(new Date(),\"ddMMyyyy\");\ndtm.reFormat(dtm.day(-7).getTime(),\"ddMMyyyy\");\n```\n\n##### String To Date\n\n\u003e dtm.stringToDate(param1, param2);\n\nFill the ```Param1``` with String Date, and; \nfill the ```Param2``` with Date string pattern, but the pattern date must be the same with String Date on ```Param1``` (Ex: String Date ```\"31/12/1998\"```, Pattern from the string date is ```\"dd/MM/yyyy\"```)\n\n###### Example\n``` java\nDTM dtm = new DTM();\ndtm.stringToDate(\"31/12/1998\",\"dd/MM/yyyy\");\n```\n\n### Author\n[kang-cahya.com](https://www.kang-cahya.com)\n\n### Credit\n[Icon](https://github.com/dyazincahya/DTM-helper-java/blob/main/icon.png) by [Flaticon.com](https://www.flaticon.com/free-icon/clock_1459182)\n  \n### License\n[MIT License](https://github.com/dyazincahya/DTM-helper-java/blob/main/LICENSE)\n","funding_links":["https://ko-fi.com/kangcahya","https://www.paypal.com/paypalme/dyazincahya"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyazincahya%2Fdtm-helper-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyazincahya%2Fdtm-helper-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyazincahya%2Fdtm-helper-java/lists"}