After you create a project on the bottom right you can do add to source control
Wednesday, October 21, 2020
Tuesday, October 20, 2020
unix timestamp to C#
public static DateTime UnixTimeStampToDateTime( double unixTimeStamp )
{
// Unix timestamp is seconds past epoch
System.DateTime dtDateTime = new DateTime(1970,1,1,0,0,0,0,System.DateTimeKind.Utc);
dtDateTime = dtDateTime.AddSeconds( unixTimeStamp ).ToLocalTime();
return dtDateTime;
}
Monday, October 19, 2020
Delete project from visual studio online
https://docs.microsoft.com/en-us/azure/devops/organizations/projects/delete-project?view=azure-devops&tabs=browser
jason to C# class
https://stackoverflow.com/questions/2246694/how-to-convert-json-object-to-custom-c-sharp-object
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace JasonTest
{
class Program
{
static void Main(string[] args)
{
String dataIn = "{\"ev\":\"A\",\"sym\":\"AAPL\",\"v\":1267,\"av\":53480851,\"op\":119.96,\"vw\":118.8477,\"o\":118.8536,\"c\":118.84,\"h\":118.855,\"l\":118.84,\"a\":119.2689,\"z\":70,\"n\":1,\"s\":1603125023000,\"e\":1603125024000}";
//var inCovJ = JsonConvert.DeserializeObject(dataIn);
StockIn inCovJ = JsonConvert.DeserializeObject<StockIn>(dataIn);
Console.WriteLine(inCovJ);
Console.WriteLine();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JasonTest
{
public class StockIn
{
public string ev { get; set; }
public string sym { get; set; }
public int v { get; set; }
public int av { get; set; }
public double op { get; set; }
public double vw { get; set; }
public double o { get; set; }
public double c { get; set; }
public double h { get; set; }
public double l { get; set; }
public double a { get; set; }
public int z { get; set; }
public long s { get; set; }
public long e { get; set; }
}
}