whosrdaddy
Vendor
I have this:
I believe there must be better (or more efficient) ways to generate the desired output.
/Daddy
-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
Code:
private string CreateUTCValues()
{ //create this string:
// "-12:-12;-11:-11;-10:-10;-9:-9;-8:-8;-7:-7;-6:-6;-5:-5;-4:-4;-3:-3;-2:-2;-1:-1;0:0;1:+1;2:+2;3:+3;4:+4;5:+5;6:+6;7:+7;8:+8;9:+9;10:+10;11:+11;12:+12"
var str = "";
for (var i = -12; i <= 12; i++)
{
if (!String.IsNullOrEmpty(str))
str += ";";
if (i > 0)
str += String.Format("{0}:+{0}", i);
else
str += String.Format("{0}:{0}", i);
}
return str;
}
I believe there must be better (or more efficient) ways to generate the desired output.
/Daddy
-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!