captains-log

[TO-FIX] audiojournaling app
git clone git://git.figbert.com/captains-log.git
Log | Files | Refs

commit caf00e351eac7090856bb7098028a99276fc543b
parent 13f158818ae5e751abc79d6a274f5eec73687a55
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Thu, 17 Oct 2019 23:06:55 -0700

Removing playground

Diffstat:
DcaptainsLog.xcodeproj/captains_log_stardate.playground/Contents.swift | 36------------------------------------
DcaptainsLog.xcodeproj/captains_log_stardate.playground/contents.xcplayground | 5-----
DcaptainsLog.xcodeproj/captains_log_stardate.playground/playground.xcworkspace/contents.xcworkspacedata | 7-------
DcaptainsLog.xcodeproj/captains_log_stardate.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist | 8--------
4 files changed, 0 insertions(+), 56 deletions(-)

diff --git a/captainsLog.xcodeproj/captains_log_stardate.playground/Contents.swift b/captainsLog.xcodeproj/captains_log_stardate.playground/Contents.swift @@ -1,36 +0,0 @@ -import UIKit - - -let date = Date() -let calendar = Calendar.current -let year = calendar.component(.year, from: date) -let month = calendar.component(.month, from: date) -let day = calendar.component(.day, from: date) -let hour = calendar.component(.hour, from: date) -let minutes = calendar.component(.minute, from: date) -let seconds = calendar.component(.second, from: date) -let leapyear = !(year % 100 == 0) && year % 4 == 0 ? true : false - -let months = [ - 1: 0, - 2: 31, - 3: !leapyear ? 59 : 60, - 4: !leapyear ? 90 : 91, - 5: !leapyear ? 120 : 121, - 6: !leapyear ? 151 : 152, - 7: !leapyear ? 181 : 182, - 8: !leapyear ? 212 : 213, - 9: !leapyear ? 243 : 244, - 10: !leapyear ? 273 : 274, - 11: !leapyear ? 304 : 305, - 12: !leapyear ? 334 : 335 -] - -let n = !leapyear ? 365 : 366 -let b = 2005 -let c = 58000.0 -let monthValue = Double(months[month] ?? 0) -let stageOne = Double(1000*(year-b)) -let stageTwo = (1000.0/Double(n))*(monthValue + Double(day) - 1.0) -let stardate = Double(round(100*(c + stageOne + stageTwo))/100) -print(stardate) diff --git a/captainsLog.xcodeproj/captains_log_stardate.playground/contents.xcplayground b/captainsLog.xcodeproj/captains_log_stardate.playground/contents.xcplayground @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<playground version='5.0' target-platform='ios'> - <timeline fileName='timeline.xctimeline'/> -</playground> -\ No newline at end of file diff --git a/captainsLog.xcodeproj/captains_log_stardate.playground/playground.xcworkspace/contents.xcworkspacedata b/captainsLog.xcodeproj/captains_log_stardate.playground/playground.xcworkspace/contents.xcworkspacedata @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Workspace - version = "1.0"> - <FileRef - location = "self:"> - </FileRef> -</Workspace> diff --git a/captainsLog.xcodeproj/captains_log_stardate.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/captainsLog.xcodeproj/captains_log_stardate.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>IDEDidComputeMac32BitWarning</key> - <true/> -</dict> -</plist>