mirror of
https://github.com/tjboldt/Apple2-IO-RPi.git
synced 2024-11-29 02:49:43 +00:00
20 lines
320 B
Go
20 lines
320 B
Go
package handlers
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
|
|
"github.com/tjboldt/ProDOS-Utilities/prodos"
|
|
)
|
|
|
|
func GetTimeCommand() {
|
|
fmt.Printf("Sending date/time...\n")
|
|
prodosTime := prodos.DateTimeToProDOS(time.Now())
|
|
|
|
for i := 0; i < len(prodosTime); i++ {
|
|
comm.WriteByte(prodosTime[i])
|
|
}
|
|
|
|
fmt.Printf("Send time complete\n")
|
|
}
|