timesync_other.go 537 B

123456789101112131415161718
  1. //go:build !windows
  2. // ============================================================================
  3. // timesync_other.go — 系统时间同步(非 Windows 空实现)
  4. //
  5. // 当前平台不支持校准系统时钟,返回明确错误提示。
  6. // ============================================================================
  7. package main
  8. import (
  9. "fmt"
  10. "time"
  11. )
  12. // setLocalTime 非 Windows 平台暂不支持校准系统时钟
  13. func setLocalTime(t time.Time) error {
  14. return fmt.Errorf("当前平台不支持校准系统时间")
  15. }