[{"data":1,"prerenderedAt":356},["ShallowReactive",2],{"project-41254740":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":35,"aspects":36,"strip":44,"post_text":46,"what":47,"said":71,"maker_in_thread":138,"shape":143,"grid":148,"attempts":314,"same_week":319,"maker_shows":45,"maker_hidden":348,"reader_version":349,"card":350},"41254740","sqlean-time","High-precision date\u002Ftime in SQLite","title","Show HN: High-precision date\u002Ftime in SQLite","https:\u002F\u002Fantonz.org\u002Fsqlean-time\u002F","antonz.org","nalgeon",1723720417,2024,274,68,245,3515,7,"legend","data","sqlite extension","library",[24,25,26,27],"sqlite","date time","nanosecond precision","sql extension","curious",-0.204,{"positive":31,"neutral":32,"mixed":33,"critical":34},1,12,0,9,22,{"execution":37,"docs":39,"idea":40,"design":42},{"positive":33,"critical":38},3,{"positive":33,"critical":33},{"positive":31,"critical":41},2,{"positive":33,"critical":43},4,[38,38,31,33,31,33,33,33,38,33,38,38,33,38,31,33,31,33,38,33,31,45,33,33,33,38,38,38,31,31,33,33,33,33,33,33,33,33,33,33],5,null,{"problem":48,"audience":46,"pricing":46,"motivation":46,"time_to_build":46,"stack":56,"openness":70,"stage":70,"team_size":70},{"value":49,"source":50,"evidence":51},"SQLite lacks high-precision date and time handling","inferred",[52],{"id":53,"by":54,"text":55},"41255328","simontheowl","Very cool - definitely an important missing feature in SQlite.",[57,63],{"value":58,"source":50,"evidence":59},"SQLite",[60],{"id":61,"by":11,"text":62},"41258214","I appreciate your comments, and thank you for trying out the extension. This query returns -1 (minus one, not one), which seems correct to me. The first date is before the…",{"value":64,"source":65,"evidence":66},"Go","maker",[67],{"id":68,"by":11,"text":69},"41255751","It works very well for me and thousands of other Go developers. That's why I chose this approach.","unknown",{"praise":72,"objections":78,"requests":103,"questions":114,"alternatives":130},[73],{"value":74,"source":75,"evidence":76},"Useful missing feature for SQLite","commenter",[77],{"id":53,"by":54,"text":55},[79,89,96],{"value":80,"source":75,"evidence":81},"Only fixed time zone offsets, no time zone names or local time",[82,86],{"id":83,"by":84,"text":85},"41256152","sltkr","This library doesn't deal with the notion of local time at all. It's all UTC-based times, possibly with a user-supplied timezone offset, but then the hard part of calculating the…",{"id":87,"by":11,"text":88},"41256698","Thanks for the suggestion! True, only fixed offsets are supported, not timezone names.",{"value":90,"source":75,"evidence":91},"Ignores leap seconds",[92],{"id":93,"by":94,"text":95},"41258482","Someone","> It's all UTC-based times Not even that. UTC has leap seconds, which this code doesn’t handle (FTA: “The calendrical calculations always assume a Gregorian calendar, with no…",{"value":97,"source":75,"evidence":98},"Nanosecond precision limits range to about ±290 years",[99],{"id":100,"by":101,"text":102},"41255543","mynameisash","I find the three different time representations\u002Fsizes curious (eg, what possible use case would need nanosecond precision over a span of billions of years?). More confusing is…",[104],{"value":105,"source":75,"evidence":106},"Handle historical timezone changes and local time discontinuities",[107,111],{"id":108,"by":109,"text":110},"41255879","alberth","Does this handle the special case of timezone changes (and local time discontinuity) that Jon Skeet famously documented?…",{"id":112,"by":109,"text":113},"41258134","@nalgeon Do you plan to address the use cases in the SO post, or asked differently - what is the intended use case of this library? I tried to recreate it on your site (which is…",[115,123],{"value":116,"source":75,"evidence":117},"Why use nanosecond precision and a limited range",[118,119],{"id":100,"by":101,"text":102},{"id":120,"by":121,"text":122},"41256726","lifeisstillgood","This is a sort of lazy Ask HN: but in your experience, what is more useful \u002F valuable - nanosecond representation, or years outside the nano range of something like 1678-2200 I…",{"value":124,"source":75,"evidence":125},"Is the SQLite ecosystem the right target",[126],{"id":127,"by":128,"text":129},"41258917","doctorpangloss","Another POV is, why build for the SQLite \"ecosystem\" at all?",[131],{"value":132,"source":75,"evidence":133},"Unix timestamps as signed int64 nanoseconds",[134],{"id":135,"by":136,"text":137},"41256085","out_of_protocol","Why not go golang style, unix timestamp as nanoseconds, in signed int64. Maybe you can't cover millions of years with nanosecond precision, do you really need it?",{"comments":45,"answered":43,"key":139},[140,141,142],{"id":87,"text":88},{"id":61,"text":62},{"id":68,"text":69},{"commenters":144,"max_depth":145,"maker_replies":45,"first_comment_mins":146,"lifespan_hours":147},39,13,56,134,[149,151,153,155,157,159,163,164,166,169,173,176,179,182,185,189,192,194,196,199,202,205,209,212,215,217,220,224,228,231,234,237,239,241,243,245,248,251,253,255,257,259,262,266,267,270,273,275,277,280,283,285,287,290,293,295,297,299,302,304,306,308,310,312],[108,33,38,150,109,33],"project\u002Fneutral\u002Fexecution",[83,33,38,152,84,33],"project\u002Fneutral\u002Fdocs",[87,33,33,154,11,31],"maker\u002Fneutral\u002Fdocs",[112,33,31,156,109,33],"project\u002Fcritical\u002Fexecution",[61,33,33,158,11,31],"commenter\u002Fneutral\u002Fexecution",[160,33,33,161,162,33],"41258657","commenter\u002Fneutral\u002Fidea","kaoD",[93,33,31,156,94,33],[127,33,31,165,128,33],"project\u002Fcritical\u002Fidea",[167,33,33,161,168,33],"41260009","devmor",[170,33,33,171,172,33],"41260993","other\u002Fneutral\u002Fnone","ErikBjare",[174,33,33,171,175,33],"41262191","raggi",[177,33,33,171,178,33],"41262620","vsuperpower2021",[180,33,38,150,181,33],"41261115","nottorp",[183,33,33,184,94,33],"41261226","commenter\u002Fneutral\u002Fnone",[186,33,33,187,188,33],"41259144","commenter\u002Fneutral\u002Fdocs","akira2501",[190,33,33,184,191,33],"41265758","michaelcampbell",[100,31,38,193,101,33],"project\u002Fneutral\u002Fdesign",[68,31,33,195,11,31],"maker\u002Fpositive\u002Fdesign",[197,31,38,193,198,33],"41256301","g15jv2dp",[200,31,33,184,201,33],"41257762","bongodongobob",[203,31,38,193,204,33],"41258607","michaelt",[206,41,33,207,208,33],"41256878","other\u002Fneutral\u002Fidea","quotemstr",[210,41,31,165,211,33],"41257038","zokier",[213,41,38,150,214,33],"41258178","n_plus_1_acc",[216,41,33,171,208,33],"41258244",[218,41,33,184,219,33],"41260808","SonOfLilit",[221,38,31,222,223,33],"41255004","project\u002Fcritical\u002Fdesign","davidhyde",[225,38,33,226,227,33],"41255031","commenter\u002Fneutral\u002Fdesign","jagged-chisel",[229,38,38,152,230,33],"41255156","sigseg1v",[232,38,33,184,233,33],"41255558","tyingq",[235,38,33,184,236,33],"41255517","gcr",[238,38,33,184,162,33],"41258689",[240,38,31,156,223,33],"41259395",[242,38,33,184,162,33],"41259674",[53,43,45,244,54,33],"project\u002Fpositive\u002Fidea",[246,45,33,207,247,33],"41256839","cryptonector",[249,45,33,171,250,33],"41258614","funny_falcon",[252,45,33,171,247,33],"41259289",[254,45,33,171,250,33],"41284942",[256,45,33,171,247,33],"41300968",[120,258,38,193,121,33],6,[260,258,38,193,261,33],"41256910","cyberax",[263,258,38,264,265,33],"41257022","project\u002Fneutral\u002Fnone","rokkamokka",[135,18,38,193,136,33],[268,18,31,222,269,33],"41256230","commodoreboxer",[271,18,31,222,272,33],"41257917","azornathogron",[274,18,31,222,136,33],"41258106",[276,18,33,193,11,31],"41256614",[278,279,33,171,211,33],"41255275",8,[281,279,33,184,282,33],"41255776","ralferoo",[284,279,33,184,211,33],"41256833",[286,279,33,184,282,33],"41257215",[288,279,33,184,289,33],"41257682","edflsafoiewq",[291,279,33,184,292,33],"41258050","fluoridation",[294,279,33,184,289,33],"41258458",[296,279,33,184,292,33],"41258806",[298,279,33,171,282,33],"41261289",[300,279,33,171,301,33],"41263164","da_chicken",[303,279,33,171,292,33],"41266930",[305,279,33,171,301,33],"41274692",[307,279,33,184,292,33],"41283910",[309,279,33,184,301,33],"41305849",[311,279,33,184,282,33],"41258095",[313,279,33,154,11,31],"41255835",[315,318],{"id":316,"t":317,"points":258,"comments":33},"41224324",1723470442,{"id":4,"t":12,"points":14,"comments":15},[320,325,330,335,340,343],{"id":321,"name":322,"points":323,"category":324},"41284703","PgQueuer",376,"languages",{"id":326,"name":327,"points":328,"category":329},"41291700","Srcbook",267,"dev_tools",{"id":331,"name":332,"points":333,"category":334},"41307815","Handwriter.ttf",191,"creative",{"id":336,"name":337,"points":338,"category":339},"41252731","polyfight.io",171,"games",{"id":341,"name":342,"points":338,"category":334},"41271014","Blender shortcuts",{"id":344,"name":345,"points":346,"category":347},"41311489","Permify 1.0",154,"infrastructure",false,"v2",{"id":351,"name":5,"line":6,"ai":348,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":352,"top":18,"kw":353,"maker":11,"domain":10,"tier":19,"attempts":41,"strip":354,"url":9,"mix":355,"praise":74,"objection":80,"sub":21},41254740,-0.2,[24,25,26,27],"3310100030330310103015000333110000000000",[31,32,33,34],1793991098015]