The official version of the United States code is slow to be published and the online versions are not current. Be careful when using a free web site to review statutes.
NYS does not produce an official code. The codes used in NY are McKinney's published by West, NY Consolidated Law Service published by LexisNexis, and Gould's - which published desk copies of laws covering a specific topic. Be sure you know the date of the last update to these sites.