Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I start every .java file in my project with a license (BSD, in my case). And its first line says:

 * Copyright (c) 2011-2014, Firstname Lastname
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions

The question is, why do I need to show years there? I see many other projects are doing the same. What will I lose by just saying Copyright (c) Firstname Lastname, without that time interval.

share|improve this question

marked as duplicate by gnat, MichaelT, Kilian Foth, GlenH7, Dan Pichelman Feb 6 '14 at 17:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

discussed here:… – thorsten müller Feb 5 '14 at 13:49
Closely related:… – apsillers Feb 5 '14 at 15:52

Dates aren't so much a licensing thing as a copyright thing.

Although the particulars vary from jurisdiction to jurisdiction, copyrights generally apply for a finite amount of time. By including a date range, you can state unambiguously when the term of your copyright started, and thus remove the question of whether or not that copyright is still in force. Computing is a young enough field that this is not presently very much of a concern: most of the code that has ever been copyrighted still hasn't been around long enough for the copyright to expire. But as the years go by, it will eventually start to be an issue.

In some jurisdictions, you can release the copyright on your code by dedicating it to the public domain. However, even in these cases, the date stamp remains important. Stamping public-domain code shows unambiguously when it was released.

share|improve this answer
Copyright (c) 2014-2999 ... – Michael Feb 5 '14 at 16:45
The start date is the important part, really. The end date doesn't matter as much, since it's recognized that sometimes things go for more than a year without being updated. Even if your datestamp goes beyond what the law would specify is the term of your copyright, the law wins. – The Spooniest Feb 5 '14 at 19:54
So, why do so many people and corporations bother themselves updating the end date in a lot of files? – brandizzi Feb 5 '14 at 20:31
Historically, for a work to claim copyright protection, it needed to have a notice which indicated when it was published. Copyright protection would expire 28 years after January 1 of the specified year unless renewed. If parts of a work were published in any form in 1919 and other parts were first published in 1920, claiming a 1919 date for the latter parts would cause their copyright to expire a year earlier than it otherwise would; claiming a 1920 date for the former would void their copyright entirely. – supercat Feb 5 '14 at 20:37
In an over-reaction to the fact that some people's works were forfeited to the public domain because of accidental failures to include copyright notice, the 1976 copyright rules basically threw out copyright notice requirements. Still, despite the fact that for many works the date given in the notice is unlikely to affect when, if ever, they enter the public domain, the inclusion of copyright notices is still common practice. – supercat Feb 5 '14 at 20:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.