{"id":32117522,"url":"https://github.com/stav/deno-date-wire","last_synced_at":"2026-05-17T15:04:34.151Z","repository":{"id":62422647,"uuid":"481693834","full_name":"stav/deno-date-wire","owner":"stav","description":".NET JSON date format parser","archived":false,"fork":false,"pushed_at":"2024-03-18T05:15:41.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-14T00:41:42.814Z","etag":null,"topics":["date","date-formatting","datetime","deno"],"latest_commit_sha":null,"homepage":"https://deno.land/x/date_wire","language":"TypeScript","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/stav.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":"2022-04-14T17:35:45.000Z","updated_at":"2022-08-16T15:51:14.000Z","dependencies_parsed_at":"2022-11-01T17:33:29.411Z","dependency_job_id":null,"html_url":"https://github.com/stav/deno-date-wire","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stav/deno-date-wire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stav%2Fdeno-date-wire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stav%2Fdeno-date-wire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stav%2Fdeno-date-wire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stav%2Fdeno-date-wire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stav","download_url":"https://codeload.github.com/stav/deno-date-wire/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stav%2Fdeno-date-wire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33143276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","date-formatting","datetime","deno"],"created_at":"2025-10-20T16:49:57.006Z","updated_at":"2026-05-17T15:04:34.146Z","avatar_url":"https://github.com/stav.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-date-wire\n\n## DateTime Wire Format\n\nDateTime values appear as JSON strings in the form of \"/Date(700000+0500)/\", where the first number (700000 in the example provided) is the number of milliseconds in the GMT time zone, regular (non-daylight savings) time since midnight, January 1, 1970. The number may be negative to represent earlier times. The part that consists of \"+0500\" in the example is optional and indicates that the time is of the Local kind - that is, should be converted to the local time zone on deserialization. If it is absent, the time is deserialized as Utc. The actual number (\"0500\" in this example) and its sign (+ or -) are ignored.\n\nWhen serializing DateTime, Local and Unspecified times are written with an offset, and Utc is written without.\n\nThe ASP.NET AJAX client JavaScript code automatically converts such strings into JavaScript DateTime instances. If there are other strings that have a similar form that are not of type DateTime in .NET, they are converted as well.\n\nThe conversion only takes place if the \"/\" characters are escaped (that is, the JSON looks like \"\\/Date(700000+0500)\\/\"), and for this reason WCF's JSON encoder (enabled by the WebHttpBinding) always escapes the \"/\" character.\n\nhttps://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/stand-alone-json-serialization?redirectedfrom=MSDN#datetime-wire-format\n\n## Timezone\n\n    '/Date\\((\\d+)([+-]\\d+)?\\)/'\n    tz = isempty(tokens{2}) ? 'UTC' : 'local'\n\n## Usage\n\n@seealso [Kingbot candles.ts](https://github.com/stav/kingbot/blob/master/src/lib/candles.ts).\n\n```typescript\n// \"wire/\": \"https://deno.land/x/date_wire@v0.3/\",\nimport { date, timestamp } from 'wire/wcf.ts';\n\nconst date = new Date()).toISOString();\nconst barDate = '/Date(700000+0500)/';\nconst dateString = date(barDate) || date;\nconst barTs = timestamp(barDate) || 0;\n```\n\n## Links\n\n* ISO 8601 and RFC 822 on Android https://medium.com/@oguzbabaoglu/iso-8601-and-rfc-822-on-android-e45b6f9027b6\n* RFC 3339 vs ISO 8601 vs HTML https://ijmacd.github.io/rfc3339-iso8601/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstav%2Fdeno-date-wire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstav%2Fdeno-date-wire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstav%2Fdeno-date-wire/lists"}