Permalink
Browse files

Added Date Conversion Helper

  • Loading branch information...
1 parent 791ea06 commit e7884815d250bc74083f7d7ba8badfd2efd7dbc5 @Haythem committed Jul 26, 2012
Showing with 342 additions and 298 deletions.
  1. +66 −54 Source/Kippt.sln
  2. BIN Source/Kippt.suo
  3. +6 −0 Source/Kippt/KipptAccount.cs
  4. +2 −2 Source/Kippt/KipptClip.cs
  5. +181 −181 Source/Kippt/KipptList.cs
  6. +87 −61 Source/Kippt/Utils.cs
View
@@ -1,54 +1,66 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kippt", "Kippt\Kippt.csproj", "{2D95826E-EE1F-4417-AE71-2D492F25CC6E}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kippt.Silverlight", "Kippt.Silverlight\Kippt.Silverlight.csproj", "{7424C378-5F9B-4C5A-8190-92C25A28C915}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kippt.WindowsPhone", "Kippt.WindowsPhone\Kippt.WindowsPhone.csproj", "{AB64219C-EA63-4391-A9E1-27F4C9AF830C}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Debug|Mixed Platforms = Debug|Mixed Platforms
- Debug|x86 = Debug|x86
- Release|Any CPU = Release|Any CPU
- Release|Mixed Platforms = Release|Mixed Platforms
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|x86.ActiveCfg = Debug|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Any CPU.Build.0 = Release|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|x86.ActiveCfg = Release|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|x86.ActiveCfg = Debug|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Any CPU.Build.0 = Release|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|x86.ActiveCfg = Release|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|x86.ActiveCfg = Debug|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Any CPU.Build.0 = Release|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|x86.ActiveCfg = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kippt", "Kippt\Kippt.csproj", "{2D95826E-EE1F-4417-AE71-2D492F25CC6E}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kippt.Silverlight", "Kippt.Silverlight\Kippt.Silverlight.csproj", "{7424C378-5F9B-4C5A-8190-92C25A28C915}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kippt.WindowsPhone", "Kippt.WindowsPhone\Kippt.WindowsPhone.csproj", "{AB64219C-EA63-4391-A9E1-27F4C9AF830C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kippt.Tests", "Kippt.Tests\Kippt.Tests.csproj", "{4BD9A16D-591A-47B0-99FF-60F26AA176B8}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|Mixed Platforms = Debug|Mixed Platforms
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|Mixed Platforms = Release|Mixed Platforms
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {2D95826E-EE1F-4417-AE71-2D492F25CC6E}.Release|x86.ActiveCfg = Release|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {7424C378-5F9B-4C5A-8190-92C25A28C915}.Release|x86.ActiveCfg = Release|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {AB64219C-EA63-4391-A9E1-27F4C9AF830C}.Release|x86.ActiveCfg = Release|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {4BD9A16D-591A-47B0-99FF-60F26AA176B8}.Release|x86.ActiveCfg = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
Binary file not shown.
@@ -47,6 +47,12 @@ public class KipptAccount
[DataMember(Name = "api_token")]
public string ApiToken { get; set; }
+ /// <summary>
+ /// Gets the profile url.
+ /// </summary>
+ [DataMember(Name = "app_url")]
+ public string Profile { get; set; }
+
/// <summary>
/// Gets or sets the avatar url (Gravatar).
/// </summary>
@@ -70,7 +70,7 @@ public class KipptClip
/// </summary>
public DateTime DateCreated
{
- get { return new DateTime(1970, 1, 1, 0, 0, 0, 0).AddMilliseconds(dateCreated * 1000L); }
+ get { return Utils.FromUnixTime(dateCreated); }
}
[DataMember(Name = "updated")]
@@ -80,7 +80,7 @@ public DateTime DateCreated
/// </summary>
public DateTime DateUpdated
{
- get { return new DateTime(1970, 1, 1, 0, 0, 0, 0).AddMilliseconds(dateUpdated * 1000L); }
+ get { return Utils.FromUnixTime(dateUpdated); }
}
[DataMember(Name = "list")]
Oops, something went wrong.

0 comments on commit e788481

Please sign in to comment.