Displaying 5 results from an estimated 5 matches for "this_year".
2018 Aug 22
4
[PATCH] generator: Do not claim copyright for future years
...nerator/docstrings.ml b/generator/docstrings.ml
index fa7b1668a..b480d036e 100644
--- a/generator/docstrings.ml
+++ b/generator/docstrings.ml
@@ -68,9 +68,7 @@ let version_added = function
Some (sprintf "%d.%d.%d" major minor release)
| _ -> None
-let copyright_years =
- let this_year = 1900 + (localtime (time ())).tm_year in
- if this_year > 2009 then sprintf "2009-%04d" this_year else "2009"
+let copyright_years = "2009-2018"
(* Generate a header block in a number of standard styles. *)
type comment_style =
--
2.16.4
2016 Mar 18
0
Fwd: libguestfs patch
...=======================================
--- libguestfs-1.26.10.orig/generator/docstrings.ml
+++ libguestfs-1.26.10/generator/docstrings.ml
@@ -51,9 +51,7 @@ fact that they are deprecated indicates
with correct use of these functions." prefix alt in
Some txt
-let copyright_years =
- let this_year = 1900 + (localtime (time ())).tm_year in
- if this_year > 2009 then sprintf "2009-%04d" this_year else "2009"
+let copyright_years = "2009-2016"
(* Generate a header block in a number of standard styles. *)
type comment_style =
----- End forwarded message ----...
2018 Aug 22
0
Re: [PATCH] generator: Do not claim copyright for future years
...s.ml
> index fa7b1668a..b480d036e 100644
> --- a/generator/docstrings.ml
> +++ b/generator/docstrings.ml
> @@ -68,9 +68,7 @@ let version_added = function
> Some (sprintf "%d.%d.%d" major minor release)
> | _ -> None
>
> -let copyright_years =
> - let this_year = 1900 + (localtime (time ())).tm_year in
> - if this_year > 2009 then sprintf "2009-%04d" this_year else "2009"
> +let copyright_years = "2009-2018"
>
> (* Generate a header block in a number of standard styles. *)
> type comment_style =
> --
&...
2015 May 28
4
[PATCH 1/4] generator: move api_version to a common version_added
...alt in
Some txt
+let version_added = function
+ | { added = (0, 0, release) } -> Some (sprintf "0.%d" release)
+ | { added = ((0|1) as major, minor, release) } ->
+ Some (sprintf "%d.%d.%d" major minor release)
+ | _ -> None
+
let copyright_years =
let this_year = 1900 + (localtime (time ())).tm_year in
if this_year > 2009 then sprintf "2009-%04d" this_year else "2009"
--
2.1.0
2008 Mar 12
3
Some random rails, and maybe Ruby, questions..
Hi,
I''m attempting to create a users statistics controller, and have saved
up some questions regarding this for this post.
So, please comment on any one of them, if not all :-)
1) Is there a library somewhere for doing stats? (e.g. mean, median,
sd, skewness..) on an array in rails?
2) What library would you recommend for "publication ready" (i.e. not
cheesy) histograms,