This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using ScheduleBusiness.Models; | |
namespace ScheduleBusiness | |
{ | |
public static class TimeParser | |
{ | |
public static Time Parse(string timeText) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adapted from http://stackoverflow.com/questions/1765014/convert-string-from-date-into-a-time-t | |
// Formats __DATE__ to YYYY-MM-DD format | |
String ArduinoDateToDisplayDate(char const *time) { | |
char s_month[5]; | |
int month, day, year; | |
static const char month_names[] = "JanFebMarAprMayJunJulAugSepOctNovDec"; | |
sscanf(time, "%s %d %d", s_month, &day, &year); | |
month = (strstr(month_names, s_month)-month_names)/3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Installing NodeJS ** | |
https://bbs.nextthing.co/t/node-js-on-c-h-i-p/7874 | |
binaries are here: | |
https://nodejs.org/en/download/ | |
binary for ARM7 (version number will change. from the link, CHIP must be ARM7. What about Pi?) | |
https://nodejs.org/dist/v6.10.0/node-v6.10.0-linux-armv7l.tar.xz | |
this command downloads it |