From 94e1ebf093b95376b3f305cc4f963ddb1d354dff Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Wed, 9 Jun 2010 10:19:15 +0200 Subject: [PATCH] minor: tweaking time formatting in T4 templates --- .../Atlas/AtlasLinearAlgebraProvider.cs | 7 ++++++- .../LinearAlgebra/Atlas/SafeNativeMethods.cs | 2 +- .../LinearAlgebra/Mkl/MklLinearAlgebraProvider.cs | 7 ++++++- .../LinearAlgebra/Mkl/SafeNativeMethods.cs | 2 +- .../LinearAlgebra/NativeAlgebraProvider.include | 7 ++++++- .../LinearAlgebra/SafeNativeMethods.include | 2 +- src/Numerics/Version.cs | 12 ++++++++---- src/Numerics/Version.tt | 10 ++++++++-- 8 files changed, 37 insertions(+), 12 deletions(-) diff --git a/src/Numerics/Algorithms/LinearAlgebra/Atlas/AtlasLinearAlgebraProvider.cs b/src/Numerics/Algorithms/LinearAlgebra/Atlas/AtlasLinearAlgebraProvider.cs index 716747f5..c902958e 100644 --- a/src/Numerics/Algorithms/LinearAlgebra/Atlas/AtlasLinearAlgebraProvider.cs +++ b/src/Numerics/Algorithms/LinearAlgebra/Atlas/AtlasLinearAlgebraProvider.cs @@ -1,7 +1,9 @@ // // Math.NET Numerics, part of the Math.NET Project // http://mathnet.opensourcedotnet.info +// // Copyright (c) 2009 Math.NET +// // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without @@ -10,8 +12,10 @@ // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: +// // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -24,8 +28,9 @@ /* This file is automatically generated - do not modify it. Change NativeLinearAlgebraProvider.include instead. - Last generated on: 6/9/2010 7:30:08 AM + Last generated on UTC 2010-06-09 08:17:09Z */ + namespace MathNet.Numerics.Algorithms.LinearAlgebra.Atlas { using System; diff --git a/src/Numerics/Algorithms/LinearAlgebra/Atlas/SafeNativeMethods.cs b/src/Numerics/Algorithms/LinearAlgebra/Atlas/SafeNativeMethods.cs index 8834f362..1bf9f9e3 100644 --- a/src/Numerics/Algorithms/LinearAlgebra/Atlas/SafeNativeMethods.cs +++ b/src/Numerics/Algorithms/LinearAlgebra/Atlas/SafeNativeMethods.cs @@ -28,7 +28,7 @@ /* This file is automatically generated - do not modify it. Change SafeNativeMethods.include instead. - Last generated on: 16/05/2010 10:38:42 + Last generated on UTC 2010-06-09 08:17:11Z */ using System.Numerics; diff --git a/src/Numerics/Algorithms/LinearAlgebra/Mkl/MklLinearAlgebraProvider.cs b/src/Numerics/Algorithms/LinearAlgebra/Mkl/MklLinearAlgebraProvider.cs index 8e0cb025..dd855174 100644 --- a/src/Numerics/Algorithms/LinearAlgebra/Mkl/MklLinearAlgebraProvider.cs +++ b/src/Numerics/Algorithms/LinearAlgebra/Mkl/MklLinearAlgebraProvider.cs @@ -1,7 +1,9 @@ // // Math.NET Numerics, part of the Math.NET Project // http://mathnet.opensourcedotnet.info +// // Copyright (c) 2009 Math.NET +// // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without @@ -10,8 +12,10 @@ // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: +// // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -24,8 +28,9 @@ /* This file is automatically generated - do not modify it. Change NativeLinearAlgebraProvider.include instead. - Last generated on: 6/9/2010 7:30:14 AM + Last generated on UTC 2010-06-09 08:17:18Z */ + namespace MathNet.Numerics.Algorithms.LinearAlgebra.Mkl { using System; diff --git a/src/Numerics/Algorithms/LinearAlgebra/Mkl/SafeNativeMethods.cs b/src/Numerics/Algorithms/LinearAlgebra/Mkl/SafeNativeMethods.cs index 989353ab..e9c4ca63 100644 --- a/src/Numerics/Algorithms/LinearAlgebra/Mkl/SafeNativeMethods.cs +++ b/src/Numerics/Algorithms/LinearAlgebra/Mkl/SafeNativeMethods.cs @@ -28,7 +28,7 @@ /* This file is automatically generated - do not modify it. Change SafeNativeMethods.include instead. - Last generated on: 16/05/2010 10:38:47 + Last generated on UTC 2010-06-09 08:17:20Z */ using System.Numerics; diff --git a/src/Numerics/Algorithms/LinearAlgebra/NativeAlgebraProvider.include b/src/Numerics/Algorithms/LinearAlgebra/NativeAlgebraProvider.include index e1fbfddb..18681b59 100644 --- a/src/Numerics/Algorithms/LinearAlgebra/NativeAlgebraProvider.include +++ b/src/Numerics/Algorithms/LinearAlgebra/NativeAlgebraProvider.include @@ -1,7 +1,9 @@ // // Math.NET Numerics, part of the Math.NET Project // http://mathnet.opensourcedotnet.info +// // Copyright (c) 2009 Math.NET +// // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without @@ -10,8 +12,10 @@ // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: +// // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -24,8 +28,9 @@ /* This file is automatically generated - do not modify it. Change NativeLinearAlgebraProvider.include instead. - Last generated on: <#=DateTime.Now.ToString()#> + Last generated on UTC <#=DateTime.UtcNow.ToString("u")#> */ + namespace MathNet.Numerics.Algorithms.LinearAlgebra.<#=library#> { using System; diff --git a/src/Numerics/Algorithms/LinearAlgebra/SafeNativeMethods.include b/src/Numerics/Algorithms/LinearAlgebra/SafeNativeMethods.include index 93039291..e90772a3 100644 --- a/src/Numerics/Algorithms/LinearAlgebra/SafeNativeMethods.include +++ b/src/Numerics/Algorithms/LinearAlgebra/SafeNativeMethods.include @@ -28,7 +28,7 @@ /* This file is automatically generated - do not modify it. Change SafeNativeMethods.include instead. - Last generated on: <#=DateTime.Now.ToString()#> + Last generated on UTC <#=DateTime.UtcNow.ToString("u")#> */ using System.Numerics; diff --git a/src/Numerics/Version.cs b/src/Numerics/Version.cs index 018e917a..32362c28 100644 --- a/src/Numerics/Version.cs +++ b/src/Numerics/Version.cs @@ -1,7 +1,9 @@ // // Math.NET Numerics, part of the Math.NET Project // http://mathnet.opensourcedotnet.info +// // Copyright (c) 2009 Math.NET +// // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without @@ -10,8 +12,10 @@ // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: +// // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -21,12 +25,12 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // OTHER DEALINGS IN THE SOFTWARE. // + /* This file is automatically generated - do not modify it. Change Version.tt instead. - Last generated on: 04.06.2010 14:16:56 + Last generated on UTC 2010-06-09 08:16:54Z */ using System.Reflection; - -[assembly: AssemblyVersion("2010.06.4.856")] -[assembly: AssemblyFileVersion("2010.06.4.856")] \ No newline at end of file +[assembly: AssemblyVersion("2010.06.9.496")] +[assembly: AssemblyFileVersion("2010.06.9.496")] \ No newline at end of file diff --git a/src/Numerics/Version.tt b/src/Numerics/Version.tt index a7f892c7..0ce0684f 100644 --- a/src/Numerics/Version.tt +++ b/src/Numerics/Version.tt @@ -1,7 +1,9 @@ // // Math.NET Numerics, part of the Math.NET Project // http://mathnet.opensourcedotnet.info +// // Copyright (c) 2009 Math.NET +// // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without @@ -10,8 +12,10 @@ // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: +// // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -21,12 +25,14 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // OTHER DEALINGS IN THE SOFTWARE. // + /* This file is automatically generated - do not modify it. Change Version.tt instead. - Last generated on: <#=DateTime.Now.ToString()#> + Last generated on UTC <#=DateTime.UtcNow.ToString("u")#> */ + <#@ template Language="C#"#> using System.Reflection; -<# DateTime date = DateTime.Now; #> +<# DateTime date = DateTime.UtcNow; #> [assembly: AssemblyVersion("<#=date.Year#>.<#=date.Month.ToString("0#")#>.<#=date.Day#>.<#=(int)date.TimeOfDay.TotalMinutes#>")] [assembly: AssemblyFileVersion("<#=date.Year#>.<#=date.Month.ToString("0#")#>.<#=date.Day#>.<#=(int)date.TimeOfDay.TotalMinutes#>")] \ No newline at end of file